EntityType
Importing the class
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.EntityType;
Implements
Operators
|(other as CTEntityIngredient) as CTEntityIngredient
myEntityType | myCTEntityIngredient
Parameters:
other: EntityIngredient
Type: EntityIngredient
Return Type:
EntityIngredient
Members
implicit as CTEntityIngredient
myEntityType as CTEntityIngredient
Return Type:
EntityIngredient
Getter
myEntityType.category
Return Type:
MobCategory
category() as MobCategory
Getter
myEntityType.commandString
Return Type:
string
Getter
myEntityType.defaultLootTable
Return Type:
ResourceLocation
defaultLootTable() as ResourceLocation
Getter
myEntityType.dimensions
Return Type:
EntityDimensions
dimensions() as EntityDimensions
isBlockDangerous(state as BlockState) as bool
myEntityType.isBlockDangerous(myBlockState);
Parameters:
state: BlockState
Type: BlockState
Return Type:
bool
isIn(tag as KnownTag<EntityType<Entity>>) as bool
myEntityType.isIn(myKnownTag);
Parameters:
tag: KnownTag<EntityType<Entity>>
Type: KnownTag<EntityType<Entity>>
Return Type:
bool
Getter
myEntityType.registryName
Return Type:
ResourceLocation
registryName() as ResourceLocation
spawn(level as ServerLevel, spawnStack as IItemStack, spawningPlayer as Player, position as BlockPos, spawnType as MobSpawnType, alignPosition as bool, invertY as bool) as Entity
// EntityType<T : Entity>.spawn(level as ServerLevel, spawnStack as IItemStack, spawningPlayer as Player, position as BlockPos, spawnType as MobSpawnType, alignPosition as bool, invertY as bool) as Entity;myEntityType.spawn(myServerLevel, myIItemStack, myPlayer, myBlockPos, myMobSpawnType, myBool, myBool);
Parameters:
level: ServerLevel
Type: ServerLevel
spawnStack: IItemStack
Type: IItemStack
spawnType: MobSpawnType
Type: MobSpawnType
alignPosition: bool
Type: bool
invertY: bool
Type: bool
Return Type:
Entity
spawn(level as ServerLevel, position as BlockPos, spawnType as MobSpawnType) as Entity
// EntityType<T : Entity>.spawn(level as ServerLevel, position as BlockPos, spawnType as MobSpawnType) as Entity;myEntityType.spawn(myServerLevel, myBlockPos, myMobSpawnType);
Parameters:
level: ServerLevel
Type: ServerLevel
spawnType: MobSpawnType
Type: MobSpawnType
Return Type:
Entity
spawn(level as ServerLevel, data as MapData, onSpawn as function(t as Entity) as void, position as BlockPos, spawnType as MobSpawnType, alignPosition as bool, invertY as bool) as Entity
// EntityType<T : Entity>.spawn(level as ServerLevel, data as MapData, onSpawn as function(t as Entity) as void, position as BlockPos, spawnType as MobSpawnType, alignPosition as bool, invertY as bool) as Entity;myEntityType.spawn(myServerLevel, myMapData, myConsumer, myBlockPos, myMobSpawnType, myBool, myBool);
Parameters:
level: ServerLevel
Type: ServerLevel
spawnType: MobSpawnType
Type: MobSpawnType
alignPosition: bool
Type: bool
invertY: bool
Type: bool
Return Type:
Entity