If you need to reference this type directly, like when casting an Array, or as a parameter, you will need to import it. Simply add the import at
the top of the file.
import crafttweaker . api.entity . MobCategory;
MobCategory
implements the following interfaces:
StringRepresentable
Undocumented Interfaces IExtensibleEnum
, Comparable <Enum >
MobCategory is an enum with 8 constants. They are accessible like so:
< constant : minecraft:mobcategory:ambient >
< constant : minecraft:mobcategory:axolotls >
< constant : minecraft:mobcategory:creature >
< constant : minecraft:mobcategory:misc >
< constant : minecraft:mobcategory:monster >
// MobCategory.UNDERGROUND_WATER_CREATURE
< constant : minecraft:mobcategory:underground_water_creature >
// MobCategory.WATER_AMBIENT
< constant : minecraft:mobcategory:water_ambient >
// MobCategory.WATER_CREATURE
< constant : minecraft:mobcategory:water_creature >
// MobCategory.despawnDistance as int
< constant : minecraft:mobcategory:ambient > .despawnDistance
Return Type:
int
// MobCategory.despawnDistance() as int;
< constant : minecraft:mobcategory:ambient > .despawnDistance();
Return Type:
int
// MobCategory.friendly as bool
< constant : minecraft:mobcategory:ambient > .friendly
Return Type:
bool
// MobCategory.friendly() as bool;
< constant : minecraft:mobcategory:ambient > .friendly();
Return Type:
bool
// MobCategory.getName() as string;
< constant : minecraft:mobcategory:ambient > .getName();
Return Type:
string
// MobCategory.maxInstancesPerChunk as int
< constant : minecraft:mobcategory:ambient > .maxInstancesPerChunk
Return Type:
int
// MobCategory.maxInstancesPerChunk() as int;
< constant : minecraft:mobcategory:ambient > .maxInstancesPerChunk();
Return Type:
int
// MobCategory.noDespawnDistance as int
< constant : minecraft:mobcategory:ambient > .noDespawnDistance
Return Type:
int
// MobCategory.noDespawnDistance() as int;
< constant : minecraft:mobcategory:ambient > .noDespawnDistance();
Return Type:
int
// MobCategory.persistent as bool
< constant : minecraft:mobcategory:ambient > .persistent
Return Type:
bool
// MobCategory.persistent() as bool;
< constant : minecraft:mobcategory:ambient > .persistent();
Return Type:
bool
Gets the serialized name. // MobCategory.serializedName as string
< constant : minecraft:mobcategory:ambient > .serializedName
Return Type:
string
Gets the serialized name. Returns : the serialized name.
// MobCategory.serializedName() as string;
< constant : minecraft:mobcategory:ambient > .serializedName();
Return Type:
string