Diese Klasse importieren

Link to diese-klasse-importieren

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.EntityType;
Result TypeIs Implicit
Result Type
EntityIngredient
Is Implicit
true

Link to canSpawnFarFromPlayer

Name: canSpawnFarFromPlayer

Return Type: boolean

ZenScript
Copy
// EntityType.canSpawnFarFromPlayer() as boolean

myEntityType.canSpawnFarFromPlayer();

Name: canSummon

Return Type: boolean

ZenScript
Copy
// EntityType.canSummon() as boolean

myEntityType.canSummon();

Name: create

Return Type: Entity?

ZenScript
Copy
EntityType.create(level as Level) as Entity?
ParameterType
Parameter
level
Type
Level

Name: create

Return Type: Entity?

ZenScript
Copy
EntityType.create(level as ServerLevel, data as MapData?, displayName as Component?, spawningPlayer as Player?, pos as BlockPos, spawnType as MobSpawnType, alignPosition as boolean, invertY as boolean) as Entity?
ParameterType
Parameter
level
Type
ServerLevel
Parameter
data
Type
MapData?
Parameter
displayName
Type
Component?
Parameter
spawningPlayer
Type
Player?
Parameter
pos
Type
BlockPos
Parameter
spawnType
Type
MobSpawnType
Parameter
alignPosition
Type
boolean
Parameter
invertY
Type
boolean

Name: fireImmune

Return Type: boolean

ZenScript
Copy
// EntityType.fireImmune() as boolean

myEntityType.fireImmune();

Name: getCategory

Return Type: MobCategory

ZenScript
Copy
// EntityType.getCategory() as MobCategory

myEntityType.getCategory();

Link to getDefaultLootTable

Name: getDefaultLootTable

Return Type: ResourceLocation

ZenScript
Copy
// EntityType.getDefaultLootTable() as ResourceLocation

myEntityType.getDefaultLootTable();

Name: getDescription

Return Type: Component

ZenScript
Copy
// EntityType.getDescription() as Component

myEntityType.getDescription();

Link to getDescriptionId

Name: getDescriptionId

Return Type: string

ZenScript
Copy
// EntityType.getDescriptionId() as string

myEntityType.getDescriptionId();

Name: getDimensions

Return Type: EntityDimensions

ZenScript
Copy
// EntityType.getDimensions() as EntityDimensions

myEntityType.getDimensions();

Name: getHeight

Return Type: float

ZenScript
Copy
// EntityType.getHeight() as float

myEntityType.getHeight();

Name: getRegistryName

Return Type: ResourceLocation

ZenScript
Copy
// EntityType.getRegistryName() as ResourceLocation

myEntityType.getRegistryName();

Name: getWidth

Return Type: float

ZenScript
Copy
// EntityType.getWidth() as float

myEntityType.getWidth();

Link to isBlockDangerous

Name: isBlockDangerous

Return Type: boolean

ZenScript
Copy
EntityType.isBlockDangerous(state as BlockState) as boolean
ParameterType
Parameter
state
Type
BlockState

Name: isIn

Return Type: boolean

ZenScript
Copy
EntityType.isIn(tag as KnownTag<EntityType<Entity>>) as boolean
ParameterType
Parameter
tag
Type
KnownTag<EntityType<Entity>>

Name: spawn

Return Type: Entity?

ZenScript
Copy
EntityType.spawn(level as ServerLevel, data as MapData?, displayName as Component?, spawningPlayer as Player?, pos as BlockPos, spawnType as MobSpawnType, alignPosition as boolean, invertY as boolean) as Entity?
ParameterType
Parameter
level
Type
ServerLevel
Parameter
data
Type
MapData?
Parameter
displayName
Type
Component?
Parameter
spawningPlayer
Type
Player?
Parameter
pos
Type
BlockPos
Parameter
spawnType
Type
MobSpawnType
Parameter
alignPosition
Type
boolean
Parameter
invertY
Type
boolean

Name: toShortString

Return Type: string

ZenScript
Copy
// EntityType.toShortString() as string

myEntityType.toShortString();
NameTypeHas GetterHas Setter
Name
canSpawnFarFromPlayer
Type
boolean
Has Getter
true
Has Setter
false
Name
canSummon
Type
boolean
Has Getter
true
Has Setter
false
Name
category
Type
MobCategory
Has Getter
true
Has Setter
false
Name
commandString
Type
string
Has Getter
true
Has Setter
false
Name
defaultLootTable
Type
ResourceLocation
Has Getter
true
Has Setter
false
Name
description
Type
Component
Has Getter
true
Has Setter
false
Name
descriptionId
Type
string
Has Getter
true
Has Setter
false
Name
dimensions
Type
EntityDimensions
Has Getter
true
Has Setter
false
Name
fireImmune
Type
boolean
Has Getter
true
Has Setter
false
Name
height
Type
float
Has Getter
true
Has Setter
false
Name
registryName
Type
ResourceLocation
Has Getter
true
Has Setter
false
Name
toShortString
Type
string
Has Getter
true
Has Setter
false
Name
width
Type
float
Has Getter
true
Has Setter
false