Uses of Enum Class
org.bukkit.entity.EntityType
Packages that use 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 com.destroystokyo.paper.event.entity
Methods in com.destroystokyo.paper.event.entity that return EntityTypeModifier and TypeMethodDescriptionThrownEggHatchEvent.getHatchingType()
Get the type of the mob being hatched (EntityType.CHICKEN by default)PreCreatureSpawnEvent.getType()
Methods in com.destroystokyo.paper.event.entity with parameters of type EntityTypeModifier and TypeMethodDescriptionvoid
ThrownEggHatchEvent.setHatchingType(@NotNull EntityType hatchType)
Change the type of mob being hatched by the eggConstructors in com.destroystokyo.paper.event.entity with parameters of type EntityTypeModifierConstructorDescriptionPreCreatureSpawnEvent(@NotNull Location location, @NotNull EntityType type, CreatureSpawnEvent.SpawnReason reason)
PreSpawnerSpawnEvent(@NotNull Location location, @NotNull EntityType type, @NotNull Location spawnerLocation)
ThrownEggHatchEvent(@NotNull Egg egg, boolean hatching, byte numHatches, @NotNull EntityType hatchingType)
-
Uses of EntityType in io.papermc.paper.tag
Methods in io.papermc.paper.tag that return types with arguments of type EntityTypeModifier and TypeMethodDescriptionprotected @NotNull Set<EntityType>
EntitySetTag.getAllPossibleValues()
Methods in io.papermc.paper.tag with parameters of type EntityTypeConstructors in io.papermc.paper.tag with parameters of type EntityTypeModifierConstructorDescriptionEntitySetTag(@NotNull NamespacedKey key, @NotNull EntityType... values)
Constructor parameters in io.papermc.paper.tag with type arguments of type EntityTypeModifierConstructorDescriptionEntitySetTag(@NotNull NamespacedKey key, @NotNull Collection<EntityType> values)
EntitySetTag(@NotNull NamespacedKey key, @NotNull Collection<EntityType> values, @NotNull Predicate<EntityType>... globalPredicates)
EntitySetTag(@NotNull NamespacedKey key, @NotNull Predicate<EntityType> filter)
-
Uses of EntityType in org.bukkit
Fields in org.bukkit with type parameters of type EntityTypeModifier and TypeFieldDescriptionstatic Tag<EntityType>
Tag.ARROWS
Vanilla entity tag representing arrow entities.static Tag<EntityType>
Vanilla entity tag representing entities that live in beehivesstatic Registry<EntityType>
Registry.ENTITY_TYPE
Server entity types.static Tag<EntityType>
Vanilla entity tag representing projectiles that impactstatic Tag<EntityType>
Tag.RAIDERS
Vanilla entity tag for village raidersstatic Tag<EntityType>
Tag.SKELETONS
Vanilla entity tag for skeleton typesMethods in org.bukkit with parameters of type EntityTypeModifier and TypeMethodDescriptionvoid
OfflinePlayer.decrementStatistic(@NotNull Statistic statistic, @NotNull EntityType entityType)
Decrements the given statistic for this player for the given entity.void
OfflinePlayer.decrementStatistic(@NotNull Statistic statistic, @NotNull EntityType entityType, int amount)
Decrements the given statistic for this player for the given entity.int
OfflinePlayer.getStatistic(@NotNull Statistic statistic, @NotNull EntityType entityType)
Gets the value of the given statistic for this player.UnsafeValues.getTranslationKey(EntityType type)
Deprecated.Return the translation key for the EntityType, so the client can translate it into the active locale when using aTranslatableComponent
.
This isnull
, when the EntityType isn't known to NMS (custom entities)void
OfflinePlayer.incrementStatistic(@NotNull Statistic statistic, @NotNull EntityType entityType)
Increments the given statistic for this player for the given entity.void
OfflinePlayer.incrementStatistic(@NotNull Statistic statistic, @NotNull EntityType entityType, int amount)
Increments the given statistic for this player for the given entity.void
OfflinePlayer.setStatistic(@NotNull Statistic statistic, @NotNull EntityType entityType, int newValue)
Sets the given statistic for this player for the given entity.World.spawnEntity(@NotNull Location loc, @NotNull EntityType type)
Creates a entity at the givenLocation
World.spawnEntity(@NotNull Location loc, @NotNull EntityType type, CreatureSpawnEvent.SpawnReason reason)
World.spawnEntity(@NotNull Location loc, @NotNull EntityType type, CreatureSpawnEvent.SpawnReason reason, @Nullable Consumer<Entity> function)
-
Uses of EntityType in org.bukkit.block
Methods in org.bukkit.block that return EntityTypeModifier and TypeMethodDescriptionCreatureSpawner.getSpawnedType()
Get the spawner's creature type.Methods in org.bukkit.block with parameters of type EntityTypeModifier and TypeMethodDescriptionvoid
CreatureSpawner.setSpawnedType(@NotNull EntityType creatureType)
Set the spawner's creature type. -
Uses of EntityType in org.bukkit.entity
Methods in org.bukkit.entity that return EntityTypeModifier and TypeMethodDescriptionstatic @Nullable EntityType
EntityType.fromId(int id)
Deprecated.Magic valuestatic @Nullable 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
Methods in org.bukkit.event.entity that return EntityTypeModifier and TypeMethodDescriptionEntityEvent.getEntityType()
Gets the EntityType of the Entity involved in this event. -
Uses of EntityType in org.bukkit.event.player
Methods in org.bukkit.event.player that return EntityTypeModifier 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)Methods in org.bukkit.event.player with parameters of type EntityTypeModifier and TypeMethodDescriptionvoid
PlayerEggThrowEvent.setHatchingType(@NotNull EntityType hatchType)
Change the type of mob being hatched by the eggConstructors in org.bukkit.event.player with parameters of type EntityTypeModifierConstructorDescriptionPlayerEggThrowEvent(@NotNull Player player, @NotNull Egg egg, boolean hatching, byte numHatches, @NotNull EntityType hatchingType)
PlayerStatisticIncrementEvent(@NotNull Player player, @NotNull Statistic statistic, int initialValue, int newValue, @NotNull EntityType entityType)
-
Uses of EntityType in org.bukkit.inventory.meta
Methods in org.bukkit.inventory.meta that return EntityTypeModifier and TypeMethodDescriptionSpawnEggMeta.getSpawnedType()
Deprecated.different types are different itemsMethods in org.bukkit.inventory.meta with parameters of type EntityTypeModifier and TypeMethodDescriptionvoid
SpawnEggMeta.setSpawnedType(EntityType type)
Deprecated.different types are different items -
Uses of EntityType in org.bukkit.material
Methods in org.bukkit.material that return EntityTypeModifier and TypeMethodDescriptionSpawnEgg.getSpawnedType()
Deprecated.This is now stored inSpawnEggMeta
.Methods in org.bukkit.material with parameters of type EntityTypeModifier and TypeMethodDescriptionvoid
SpawnEgg.setSpawnedType(EntityType type)
Deprecated.This is now stored inSpawnEggMeta
.Constructors in org.bukkit.material with parameters of type EntityType