Uses of Enum Class
org.bukkit.entity.EntityType
Package
Description
The root package of the Bukkit API, contains generalized API classes.
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
.Isolated components which may form part of item meta.
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.
Classes related to entity spawners.
-
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
(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.UnsafeValues.getTranslationKey
(EntityType entityType) Deprecated.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.RegionAccessor.spawnEntity
(Location location, EntityType type) Creates a entity at the givenLocation
RegionAccessor.spawnEntity
(Location loc, EntityType type, boolean randomizeData) Creates a new entity at the givenLocation
. -
Uses of EntityType in org.bukkit.entity
Modifier and TypeMethodDescriptionstatic EntityType
EntityType.fromId
(int id) Deprecated.Magic valuestatic EntityType
Deprecated.Magic valueEntitySnapshot.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
(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
Modifier and TypeMethodDescriptionItemFactory.getSpawnEgg
(EntityType type) Gets aMaterial
representing the spawn egg for the providedEntityType
. -
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.inventory.meta.components
Modifier and TypeMethodDescriptionEquippableComponent.getAllowedEntities()
Gets the entities which can equip this item.Modifier and TypeMethodDescriptionvoid
EquippableComponent.setAllowedEntities
(EntityType entities) Sets the entities which can equip this item.Modifier and TypeMethodDescriptionvoid
EquippableComponent.setAllowedEntities
(Collection<EntityType> entities) Sets the entities which can equip this item.void
EquippableComponent.setAllowedEntities
(Tag<EntityType> tag) Set the entity types (represented as an entityTag
) which can equip this item. -
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
(EntityType entityType, World world) Gets if the EntityType is enabled for use by the Features in World. -
Uses of EntityType in org.bukkit.scoreboard
Modifier and TypeMethodDescriptionstatic Criteria
Criteria.statistic
(Statistic statistic, EntityType entityType) Get aCriteria
for the specified statistic pertaining to an entity type. -
Uses of EntityType in org.bukkit.spawner
Modifier and TypeMethodDescriptionvoid
BaseSpawner.setSpawnedType
(EntityType creatureType) Set the spawner's creature type.
Tag.ENTITY_TYPES_DEFLECTS_PROJECTILES