Uses of Enum Class
org.bukkit.entity.EntityType
Package
Description
The root package of the Bukkit API, contains generalized API classes.
Classes used to manipulate the voxels in a
world
,
including special states.Interfaces for non-voxel objects that can exist in a
world
, including all players, monsters, projectiles, etc.The interfaces used when manipulating extra data can can be stored inside
item stacks
.Classes that represents various voxel types and states.
-
Uses of EntityType in org.bukkit
Modifier and TypeFieldDescriptionstatic Registry<EntityType>
Registry.ENTITY_TYPE
Server entity types.Modifier and TypeMethodDescriptionvoid
OfflinePlayer.decrementStatistic(Statistic statistic, EntityType entityType)
Decrements the given statistic for this player for the given entity.void
OfflinePlayer.decrementStatistic(Statistic statistic, EntityType entityType, int amount)
Decrements the given statistic for this player for the given entity.int
OfflinePlayer.getStatistic(Statistic statistic, EntityType entityType)
Gets the value of the given statistic for this player.void
OfflinePlayer.incrementStatistic(Statistic statistic, EntityType entityType)
Increments the given statistic for this player for the given entity.void
OfflinePlayer.incrementStatistic(Statistic statistic, EntityType entityType, int amount)
Increments the given statistic for this player for the given entity.void
OfflinePlayer.setStatistic(Statistic statistic, EntityType entityType, int newValue)
Sets the given statistic for this player for the given entity.World.spawnEntity(Location loc, EntityType type)
Creates a entity at the givenLocation
-
Uses of EntityType in org.bukkit.block
Modifier and TypeMethodDescriptionCreatureSpawner.getSpawnedType()
Get the spawner's creature type.Modifier and TypeMethodDescriptionvoid
CreatureSpawner.setSpawnedType(EntityType creatureType)
Set the spawner's creature type. -
Uses of EntityType in org.bukkit.entity
Modifier and TypeMethodDescriptionstatic EntityType
EntityType.fromId(int id)
Deprecated.Magic valuestatic EntityType
Deprecated.Magic valueEntity.getType()
Get the type of the entity.static EntityType
Returns the enum constant of this class with the specified name.static EntityType[]
EntityType.values()
Returns an array containing the constants of this enum class, in the order they are declared. -
Uses of EntityType in org.bukkit.event.entity
Modifier and TypeMethodDescriptionEntityEvent.getEntityType()
Gets the EntityType of the Entity involved in this event. -
Uses of EntityType in org.bukkit.event.player
Modifier and TypeMethodDescriptionPlayerStatisticIncrementEvent.getEntityType()
Gets the EntityType ifgetStatistic()
is an entity statistic otherwise returns null.PlayerEggThrowEvent.getHatchingType()
Get the type of the mob being hatched (EntityType.CHICKEN by default)Modifier and TypeMethodDescriptionvoid
PlayerEggThrowEvent.setHatchingType(EntityType hatchType)
Change the type of mob being hatched by the eggModifierConstructorDescriptionPlayerEggThrowEvent(Player player, Egg egg, boolean hatching, byte numHatches, EntityType hatchingType)
PlayerStatisticIncrementEvent(Player player, Statistic statistic, int initialValue, int newValue, EntityType entityType)
-
Uses of EntityType in org.bukkit.inventory.meta
Modifier and TypeMethodDescriptionSpawnEggMeta.getSpawnedType()
Deprecated.different types are different itemsModifier and TypeMethodDescriptionvoid
SpawnEggMeta.setSpawnedType(EntityType type)
Deprecated.different types are different items -
Uses of EntityType in org.bukkit.material
Modifier and TypeMethodDescriptionSpawnEgg.getSpawnedType()
Deprecated.This is now stored inSpawnEggMeta
.Modifier and TypeMethodDescriptionvoid
SpawnEgg.setSpawnedType(EntityType type)
Deprecated.This is now stored inSpawnEggMeta
.