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.Classes relating to the specialized enhancements to
item stacks
, as part of the meta data
.Interfaces for non-voxel objects that can exist in a
world
, including all players, monsters, projectiles, etc.Classes involved in manipulating player inventories and item interactions.
The interfaces used when manipulating extra data can can be stored inside
item stacks
.Classes that represents various voxel types and states.
Classes dedicated to handling data pack information.
Interfaces used to manage the client side score display system.
-
Uses of EntityType in com.destroystokyo.paper.event.entity
Modifier and TypeMethodDescriptionThrownEggHatchEvent.getHatchingType()
Get the type of the mob being hatched (CHICKEN
by default)PreCreatureSpawnEvent.getType()
Modifier and TypeMethodDescriptionvoid
ThrownEggHatchEvent.setHatchingType
(@NotNull EntityType hatchType) Change the type of mob being hatched by the eggModifierConstructorDescriptionPreCreatureSpawnEvent
(@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.registry
-
Uses of EntityType in io.papermc.paper.tag
Modifier and TypeMethodDescriptionprotected @NotNull Set
<EntityType> EntitySetTag.getAllPossibleValues()
ModifierConstructorDescriptionEntitySetTag
(@NotNull NamespacedKey key, @NotNull EntityType... values) ModifierConstructorDescriptionEntitySetTag
(@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
Modifier and TypeFieldDescriptionstatic final Registry
<EntityType> Registry.ENTITY_TYPE
Server entity types.static final Tag
<EntityType> Vanilla tag representing all entities sensitive to aquatic enchantments..static final Tag
<EntityType> Vanilla tag representing arrows.static final Tag
<EntityType> Vanilla tag representing all entities sensitive to arthropod enchantments..static final Tag
<EntityType> Vanilla tag representing which entities axolotls are always hostile to.static final Tag
<EntityType> Vanilla tag representing axolotl targets.static final Tag
<EntityType> Vanilla tag representing entities which can live in beehives.static final Tag
<EntityType> Vanilla tag representing entities which can turn in boats.static final Tag
<EntityType> Deprecated.static final Tag
<EntityType> Vanilla tag representing entities which deflect projectiles.static final Tag
<EntityType> Vanilla tag representing entities which are dismounted when underwater.static final Tag
<EntityType> Vanilla tag representing entities which are immune from fall damage.static final Tag
<EntityType> Vanilla tag representing entities extra susceptible to freezing.static final Tag
<EntityType> Vanilla tag representing entities immune from freezing.static final Tag
<EntityType> Vanilla tag representing entities which can be eaten by frogs.static final Tag
<EntityType> Vanilla tag representing all entities which ignores poison and regeneration effects.static final Tag
<EntityType> Vanilla tag representing all entities sensitive to illager enchantments.static final Tag
<EntityType> Vanilla tag representing all entities which are friendly with illagers.static final Tag
<EntityType> Vanilla tag representing all entities which are immune from the infested effect.static final Tag
<EntityType> Vanilla tag representing all entities which are immune from the oozing effect.static final Tag
<EntityType> Vanilla tag representing projectiles.static final Tag
<EntityType> Vanilla tag representing all entities which are sensitive to inverted healing and harm potion effects.static final Tag
<EntityType> Vanilla tag representing all entities which do not receive anger from wind charges.static final Tag
<EntityType> Vanilla tag representing entities which are not controlled by their mount.static final Tag
<EntityType> Vanilla tag representing all entities which are not scary for pufferfish.static final Tag
<EntityType> Vanilla tag representing mobs which can walk on powder snow.static final Tag
<EntityType> Vanilla tag representing raiders.static final Tag
<EntityType> Vanilla tag representing all projectiles which can be punched back.static final Tag
<EntityType> Vanilla tag representing all entities which are sensitive to the bane_of_arthropods enchantment.static final Tag
<EntityType> Vanilla tag representing all entities which are sensitive to impaling.static final Tag
<EntityType> Vanilla tag representing all entities which are sensitive to the smite enchantment.static final Tag
<EntityType> Vanilla tag representing skeletons.static final Tag
<EntityType> Vanilla tag representing all entities which are friendly with withers.Modifier 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.UnsafeValues.getSpawnEggLayerColor
(EntityType entityType, int layer) Deprecated.Obtains the underlying color informating for a spawn egg of a given entity type, or null if the entity passed does not have a spawn egg.int
OfflinePlayer.getStatistic
(@NotNull Statistic statistic, @NotNull EntityType entityType) Gets the value of the given statistic for this player.UnsafeValues.getTranslationKey
(EntityType entityType) Deprecated.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.RegionAccessor.spawnEntity
(@NotNull Location location, @NotNull EntityType type) Creates a entity at the givenLocation
RegionAccessor.spawnEntity
(@NotNull Location loc, @NotNull EntityType type, boolean randomizeData) Creates a new entity at the givenLocation
.RegionAccessor.spawnEntity
(@NotNull Location loc, @NotNull EntityType type, @NotNull CreatureSpawnEvent.SpawnReason reason) RegionAccessor.spawnEntity
(@NotNull Location loc, @NotNull EntityType type, @NotNull CreatureSpawnEvent.SpawnReason reason, @Nullable Consumer<? super Entity> function) -
Uses of EntityType in org.bukkit.block
Modifier and TypeMethodDescriptionCreatureSpawner.getSpawnedType()
Get the spawner's creature type.Modifier and TypeMethodDescriptionvoid
CreatureSpawner.setSpawnedType
(@Nullable EntityType creatureType) Set the spawner's creature type. -
Uses of EntityType in org.bukkit.enchantments
Modifier and TypeMethodDescriptionabstract float
Enchantment.getDamageIncrease
(int level, EntityType entityType) Gets the damage increase as a result of the level and entity type specified -
Uses of EntityType in org.bukkit.entity
Modifier and TypeMethodDescriptionstatic @Nullable EntityType
EntityType.fromId
(int id) Deprecated.Magic valuestatic @Nullable EntityType
Gets an entity type from its name.EntitySnapshot.getEntityType()
Gets the type of entity this template holds.Entity.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
(@NotNull EntityType hatchType) Change the type of mob being hatched by the eggModifierConstructorDescriptionPlayerEggThrowEvent
(@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
Modifier and TypeMethodDescriptionItemFactory.getSpawnEgg
(@NotNull EntityType type) Gets aMaterial
representing the spawn egg for the providedEntityType
. -
Uses of EntityType in org.bukkit.inventory.meta
Modifier and TypeMethodDescriptionSpawnEggMeta.getCustomSpawnedType()
Get the custom type of entity this egg will spawn.SpawnEggMeta.getSpawnedType()
Deprecated, for removal: This API element is subject to removal in a future version.different types are different itemsModifier and TypeMethodDescriptionvoid
SpawnEggMeta.setCustomSpawnedType
(@Nullable EntityType type) Set the custom type of entity this egg will spawn.void
SpawnEggMeta.setSpawnedType
(EntityType type) Deprecated, for removal: This API element is subject to removal in a future version.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
. -
Uses of EntityType in org.bukkit.packs
Modifier and TypeMethodDescriptionboolean
DataPackManager.isEnabledByFeature
(@NotNull EntityType entityType, @NotNull World world) Deprecated, for removal: This API element is subject to removal in a future version.Gets if the EntityType is enabled for use by the Features in World. -
Uses of EntityType in org.bukkit.scoreboard
Tag.ENTITY_TYPES_DEFLECTS_PROJECTILES