EntityType
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.
Casters
Result Type | Is Implicit |
---|---|
Result Type EntityIngredient | Is Implicit true |
Methods
Return Type: boolean
Return Type: boolean
Return Type: Entity?
Parameter | Type |
---|---|
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 |
Return Type: boolean
Return Type: MobCategory
Return Type: ResourceLocation
Return Type: Component
Return Type: string
Return Type: EntityDimensions
Return Type: float
Return Type: ResourceLocation
Return Type: float
Return Type: boolean
Parameter | Type |
---|---|
Parameter state | Type BlockState |
Return Type: boolean
Parameter | Type |
---|---|
Parameter tag | Type KnownTag<EntityType<Entity>> |
Return Type: Entity?
Parameter | Type |
---|---|
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 |
Return Type: string
Properties
Name | Type | Has Getter | Has 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 |