MCEntityClassification

Link to mcentityclassification

Importare la Classe

Link to importare-la-classe

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;

MCEntityClassification is an enum. It has 6 enum constants. They are accessible using the code below.

ZenScript
Copy
MCEntityClassification.MONSTER
MCEntityClassification.CREATURE
MCEntityClassification.AMBIENT
MCEntityClassification.WATER_CREATURE
MCEntityClassification.WATER_AMBIENT
MCEntityClassification.MISC

Link to getCommandString

Name: 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();

Link to getMaxNumberOfCreature

Name: 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();

Name: 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();

Name: 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();

Link to isPeacefulCreature

Name: 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();
NomeTipoHa GetterHa SetterDescrizione
Nome
commandString
Tipo
string
Ha Getter
Ha Setter
no
Descrizione
Gets the command string for this EntityClassification
Nome
isAnimal
Tipo
boolean
Ha Getter
Ha Setter
no
Descrizione
Checks if this EntityClassification is an animal.
Nome
isPeaceful
Tipo
boolean
Ha Getter
Ha Setter
no
Descrizione
Checks if this EntityClassification is peaceful.
Nome
maxNumberOfEntity
Tipo
int
Ha Getter
Ha Setter
no
Descrizione
Gets how many Entities with this EntityClassification can be in the same area at the same time.
Nome
nome
Tipo
string
Ha Getter
Ha Setter
no
Descrizione
Gets the name of this Entity Classification