MCEntityClassification

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.

ZenScript
Copy
import crafttweaker.api.entity.MCEntityClassification;

Extending Enum<MCEntityClassification>

MCEntityClassification extends Enum<MCEntityClassification>. That means all methods available in Enum<MCEntityClassification> are also available in MCEntityClassification

Static Properties

NameTypeHas GetterHas SetterDescription
AMBIENTMCEntityClassificationtruefalseNo Description Provided
CREATUREMCEntityClassificationtruefalseNo Description Provided
MISCMCEntityClassificationtruefalseNo Description Provided
MONSTERMCEntityClassificationtruefalseNo Description Provided
WATER_AMBIENTMCEntityClassificationtruefalseNo Description Provided
WATER_CREATUREMCEntityClassificationtruefalseNo Description Provided

Methods

getCommandString

Gets the command string for this EntityClassification

Returns: The command string for this EntityClassification
Return Type: string

ZenScript
Copy
// MCEntityClassification.getCommandString() as string

<entityclassification:monster>.getCommandString();
getMaxNumberOfCreature

Gets how many Entities with this EntityClassification can be in the same area at the same time.

Returns: How many Entities of this EntityClassification can be in the same area at the same time.
Return Type: int

ZenScript
Copy
// MCEntityClassification.getMaxNumberOfCreature() as int

<entityclassification:monster>.getMaxNumberOfCreature();
getName

Gets the name of this Entity Classification

Returns: The name of this Entity Classification
Return Type: string

ZenScript
Copy
// MCEntityClassification.getName() as string

<entityclassification:monster>.getName();
isAnimal

Checks if this EntityClassification is an animal.

Returns: True if this EntityClassification is an animal. False otherwise.
Return Type: boolean

ZenScript
Copy
// MCEntityClassification.isAnimal() as boolean

<entityclassification:monster>.isAnimal();
isPeacefulCreature

Checks if this EntityClassification is peaceful.

Returns: True if this EntityClassification is peaceful. False otherwise.
Return Type: boolean

ZenScript
Copy
// MCEntityClassification.isPeacefulCreature() as boolean

<entityclassification:monster>.isPeacefulCreature();

Properties

NameTypeHas GetterHas SetterDescription
commandStringstringtruefalseGets the command string for this EntityClassification
isAnimalbooleantruefalseChecks if this EntityClassification is an animal.
isPeacefulbooleantruefalseChecks if this EntityClassification is peaceful.
maxNumberOfEntityinttruefalseGets how many Entities with this EntityClassification can be in the same area at the same time.
namestringtruefalseGets the name of this Entity Classification