MobCategory
Importing the class
It might be required for you to import the package if you encounter any issues (like casting an Array), so better be safe than sorry and add the import at the very top of the file.
import crafttweaker.api.entity.MobCategory;
Implemented Interfaces
MobCategory implements the following interfaces. That means all methods defined in these interfaces are also available in MobCategory
Enum Constants
MobCategory is an enum. It has 7 enum constants. They are accessible using the code below.
MobCategory.MONSTERMobCategory.CREATUREMobCategory.AMBIENTMobCategory.UNDERGROUND_WATER_CREATUREMobCategory.WATER_CREATUREMobCategory.WATER_AMBIENTMobCategory.MISC
Methods
Return Type: int
// MobCategory.getDespawnDistance() as int
myMobCategory.getDespawnDistance();
Return Type: int
// MobCategory.getMaxInstancesPerChunk() as int
myMobCategory.getMaxInstancesPerChunk();
Return Type: string
// MobCategory.getName() as string
myMobCategory.getName();
Return Type: int
// MobCategory.getNoDespawnDistance() as int
myMobCategory.getNoDespawnDistance();
Return Type: boolean
// MobCategory.isFriendly() as boolean
myMobCategory.isFriendly();
Return Type: boolean
// MobCategory.isPersistent() as boolean
myMobCategory.isPersistent();
Properties
Name | Type | Has Getter | Has Setter | Description |
---|---|---|---|---|
Name despawnDistance | Type int | Has Getter true | Has Setter false | Description No Description Provided |
Name friendly | Type boolean | Has Getter true | Has Setter false | Description No Description Provided |
Name maxInstancesPerChunk | Type int | Has Getter true | Has Setter false | Description No Description Provided |
Name noDespawnDistance | Type int | Has Getter true | Has Setter false | Description No Description Provided |
Name persistent | Type boolean | Has Getter true | Has Setter false | Description No Description Provided |