MCEntityType

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.MCEntityType;

Implemented Interfaces

MCEntityType implements the following interfaces. That means all methods defined in these interfaces are also available in MCEntityType

Casters

Result typeIs Implicit
EntityIngredienttrue

Methods

create

Creates a new entity in the world.

Returns: The newly created Entity
Return Type: MCEntity

ZenScript
Copy
MCEntityType.create(world as MCWorld) as MCEntity
ParameterTypeDescription
worldMCWorldWorld for the entity to be created in

Operators

OR
ZenScript
Copy
myMCEntityType | other as EntityIngredient

Properties

NameTypeHas GetterHas SetterDescription
classificationMCEntityClassificationtruefalseNo Description Provided
commandStringstringtruefalseNo Description Provided
heightfloattruefalseNo Description Provided
immuneToFirebooleantruefalseNo Description Provided
lootTablestringtruefalseNo Description Provided
namestringtruefalseNo Description Provided
serializablebooleantruefalseNo Description Provided
summonablebooleantruefalseNo Description Provided
translationKeystringtruefalseNo Description Provided
widthfloattruefalseNo Description Provided