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;
Undocumented Interfaces FeatureElement
, EntityTypeTest <Entity , Entity >
// (EntityType<T : Entity> | (other as CTEntityIngredient)) as CTEntityIngredient
myEntityType | myCTEntityIngredient
Return Type:
EntityIngredient
// EntityType<T : Entity> as CTEntityIngredient
myEntityType as CTEntityIngredient
Return Type:
EntityIngredient
// EntityType<T : Entity>.canSpawnFarFromPlayer as bool
myEntityType . canSpawnFarFromPlayer
Return Type:
bool
// EntityType<T : Entity>.canSpawnFarFromPlayer() as bool;
myEntityType . canSpawnFarFromPlayer();
Return Type:
bool
// EntityType<T : Entity>.canSummon as bool
Return Type:
bool
// EntityType<T : Entity>.canSummon() as bool;
myEntityType . canSummon();
Return Type:
bool
// EntityType<T : Entity>.category as MobCategory
Return Type:
MobCategory
// EntityType<T : Entity>.category() as MobCategory;
Return Type:
MobCategory
// EntityType<T : Entity>.commandString as string
myEntityType . commandString
Return Type:
string
// EntityType<T : Entity>.create(level as Level) as Entity;
myEntityType . create(myLevel);
Return Type:
Entity
// EntityType<T : Entity>.defaultLootTable as ResourceLocation
myEntityType . defaultLootTable
Return Type:
ResourceLocation
// EntityType<T : Entity>.defaultLootTable() as ResourceLocation;
myEntityType . defaultLootTable();
Return Type:
ResourceLocation
// EntityType<T : Entity>.description as Component
Return Type:
Component
// EntityType<T : Entity>.description() as Component;
myEntityType . description();
Return Type:
Component
// EntityType<T : Entity>.descriptionId as string
myEntityType . descriptionId
Return Type:
string
// EntityType<T : Entity>.descriptionId() as string;
myEntityType . descriptionId();
Return Type:
string
// EntityType<T : Entity>.dimensions as EntityDimensions
Return Type:
EntityDimensions
// EntityType<T : Entity>.dimensions() as EntityDimensions;
myEntityType . dimensions();
Return Type:
EntityDimensions
// EntityType<T : Entity>.fireImmune as bool
Return Type:
bool
// EntityType<T : Entity>.fireImmune() as bool;
myEntityType . fireImmune();
Return Type:
bool
// EntityType<T : Entity>.height as float
Return Type:
float
// EntityType<T : Entity>.height() as float;
Return Type:
float
// EntityType<T : Entity>.isBlockDangerous(state as BlockState) as bool;
myEntityType . isBlockDangerous(myBlockState);
Return Type:
bool
// EntityType<T : Entity>.isIn(tag as KnownTag<EntityType<Entity>>) as bool;
myEntityType . isIn(myKnownTag);
Return Type:
bool
// EntityType<T : Entity>.registryName as ResourceLocation
myEntityType . registryName
Return Type:
ResourceLocation
// EntityType<T : Entity>.registryName() as ResourceLocation;
myEntityType . registryName();
Return Type:
ResourceLocation
// 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:
alignPosition: bool
Type: bool
invertY: bool
Type: bool
Return Type:
Entity
// EntityType<T : Entity>.spawn(level as ServerLevel, position as BlockPos, spawnType as MobSpawnType) as Entity;
myEntityType . spawn(myServerLevel, myBlockPos, myMobSpawnType);
Return Type:
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:
onSpawn: function(t as Entity ) as void
Type: function(t as Entity ) as void
alignPosition: bool
Type: bool
invertY: bool
Type: bool
Return Type:
Entity
// EntityType<T : Entity>.toShortString as string
myEntityType . toShortString
Return Type:
string
// EntityType<T : Entity>.toShortString() as string;
myEntityType . toShortString();
Return Type:
string
// EntityType<T : Entity>.width as float
Return Type:
float
// EntityType<T : Entity>.width() as float;
Return Type:
float