EntityType
Link to entitytype
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 Copyimport crafttweaker.api.entity.EntityType;
Casters
Link to casters
Result type | Is Implicit |
---|---|
Result type EntityIngredient | Is Implicit true |
Methoden
Link to methoden
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 CopyEntityType.create(param0 as ServerLevel, param1 as MapData, param2 as Component, param3 as Player, param4 as BlockPos, param5 as MobSpawnType, alignPosition as boolean, invertY as boolean) as Entity
Parameter | Type | Beschreibung |
---|---|---|
Parameter param0 | Type ServerLevel | Beschreibung No Description Provided |
Parameter param1 | Type MapData | Beschreibung No Description Provided |
Parameter param2 | Type Component | Beschreibung No Description Provided |
Parameter param3 | Type Player | Beschreibung No Description Provided |
Parameter param4 | Type BlockPos | Beschreibung No Description Provided |
Parameter param5 | Type MobSpawnType | Beschreibung No Description Provided |
Parameter alignPosition | Type boolean | Beschreibung No Description Provided |
Parameter invertY | Type boolean | Beschreibung No Description Provided |
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();
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();
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: getWidth
Return Type: float
ZenScript Copy// EntityType.getWidth() as float
myEntityType.getWidth();
Name: isBlockDangerous
Return Type: boolean
ZenScript CopyEntityType.isBlockDangerous(state as BlockState) as boolean
Parameter | Type | Beschreibung |
---|---|---|
Parameter state | Type BlockState | Beschreibung No Description Provided |
Name: isIn
Return Type: boolean
ZenScript CopyEntityType.isIn(tag as MCTag<EntityType>) as boolean
Parameter | Type | Beschreibung |
---|---|---|
Parameter tag | Type MCTag<EntityType> | Beschreibung No Description Provided |
Name: spawn
Return Type: Entity
ZenScript CopyEntityType.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
Parameter | Type | Beschreibung |
---|---|---|
Parameter level | Type ServerLevel | Beschreibung No Description Provided |
Parameter data | Type MapData | Beschreibung No Description Provided |
Parameter displayName | Type Component | Beschreibung No Description Provided |
Parameter spawningPlayer | Type Player | Beschreibung No Description Provided |
Parameter pos | Type BlockPos | Beschreibung No Description Provided |
Parameter spawnType | Type MobSpawnType | Beschreibung No Description Provided |
Parameter alignPosition | Type boolean | Beschreibung No Description Provided |
Parameter invertY | Type boolean | Beschreibung No Description Provided |
Name: toShortString
Return Type: string
ZenScript Copy// EntityType.toShortString() as string
myEntityType.toShortString();
Properties
Link to properties
Name | Type | Has Getter | Has Setter | Beschreibung |
---|---|---|---|---|
Name canSpawnFarFromPlayer | Type boolean | Has Getter true | Has Setter false | Beschreibung No Description Provided |
Name canSummon | Type boolean | Has Getter true | Has Setter false | Beschreibung No Description Provided |
Name category | Type MobCategory | Has Getter true | Has Setter false | Beschreibung No Description Provided |
Name commandString | Type string | Has Getter true | Has Setter false | Beschreibung No Description Provided |
Name defaultLootTable | Type ResourceLocation | Has Getter true | Has Setter false | Beschreibung No Description Provided |
Name description | Type Component | Has Getter true | Has Setter false | Beschreibung No Description Provided |
Name descriptionId | Type string | Has Getter true | Has Setter false | Beschreibung No Description Provided |
Name dimensions | Type EntityDimensions | Has Getter true | Has Setter false | Beschreibung No Description Provided |
Name fireImmune | Type boolean | Has Getter true | Has Setter false | Beschreibung No Description Provided |
Name height | Type float | Has Getter true | Has Setter false | Beschreibung No Description Provided |
Name toShortString | Type string | Has Getter true | Has Setter false | Beschreibung No Description Provided |
Name width | Type float | Has Getter true | Has Setter false | Beschreibung No Description Provided |