Class ExpandMobCategory
java.lang.Object
com.blamejared.crafttweaker.natives.entity.ExpandMobCategory
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic intgetDespawnDistance(net.minecraft.world.entity.MobCategory internal) Gets the despawn distance of the mob category.static intgetMaxInstancesPerChunk(net.minecraft.world.entity.MobCategory internal) Gets the maximum number of instances per chunk.static StringgetName(net.minecraft.world.entity.MobCategory internal) Gets the name of the mob category.static intgetNoDespawnDistance(net.minecraft.world.entity.MobCategory internal) Gets the no despawn distance of the mob category.static booleanisFriendly(net.minecraft.world.entity.MobCategory internal) Checks if the mob category is friendly.static booleanisPersistent(net.minecraft.world.entity.MobCategory internal) Checks if the mob category is persistent.
-
Constructor Details
-
ExpandMobCategory
public ExpandMobCategory()
-
-
Method Details
-
getName
Gets the name of the mob category.- Returns:
- The name of the mob category.
-
getMaxInstancesPerChunk
public static int getMaxInstancesPerChunk(net.minecraft.world.entity.MobCategory internal) Gets the maximum number of instances per chunk.- Returns:
- The maximum number of instances per chunk.
-
isFriendly
public static boolean isFriendly(net.minecraft.world.entity.MobCategory internal) Checks if the mob category is friendly.- Returns:
- True if the mob category is friendly.
-
isPersistent
public static boolean isPersistent(net.minecraft.world.entity.MobCategory internal) Checks if the mob category is persistent.- Returns:
- True if the mob category is persistent.
-
getDespawnDistance
public static int getDespawnDistance(net.minecraft.world.entity.MobCategory internal) Gets the despawn distance of the mob category.- Returns:
- The despawn distance of the mob category.
-
getNoDespawnDistance
public static int getNoDespawnDistance(net.minecraft.world.entity.MobCategory internal) Gets the no despawn distance of the mob category.- Returns:
- The no despawn distance of the mob category.
-