| Package | Description | 
|---|---|
| com.destroystokyo.paper.event.entity | |
| io.papermc.paper.tag | |
| org.bukkit | The root package of the Bukkit API, contains generalized API classes. | 
| org.bukkit.block | Classes used to manipulate the voxels in a  world,
 including special states. | 
| org.bukkit.entity | Interfaces for non-voxel objects that can exist in a  world, including all players, monsters, projectiles, etc. | 
| org.bukkit.event.entity | |
| org.bukkit.event.player | |
| org.bukkit.inventory.meta | The interfaces used when manipulating extra data can can be stored inside
  item stacks. | 
| org.bukkit.material | Classes that represents various voxel types and states. | 
| Modifier and Type | Method | Description | 
|---|---|---|
| EntityType | ThrownEggHatchEvent. getHatchingType() | Get the type of the mob being hatched (EntityType.CHICKEN by default) | 
| EntityType | PreCreatureSpawnEvent. getType() | 
| Modifier and Type | Method | Description | 
|---|---|---|
| void | ThrownEggHatchEvent. setHatchingType(EntityType hatchType) | Change the type of mob being hatched by the egg | 
| Constructor | Description | 
|---|---|
| PreCreatureSpawnEvent(Location location,
                     EntityType type,
                     CreatureSpawnEvent.SpawnReason reason) | |
| PreSpawnerSpawnEvent(Location location,
                    EntityType type,
                    Location spawnerLocation) | |
| ThrownEggHatchEvent(Egg egg,
                   boolean hatching,
                   byte numHatches,
                   EntityType hatchingType) | 
| Modifier and Type | Method | Description | 
|---|---|---|
| protected Set<EntityType> | EntitySetTag. getAllPossibleValues() | 
| Modifier and Type | Method | Description | 
|---|---|---|
| protected String | EntitySetTag. getName(EntityType value) | 
| Constructor | Description | 
|---|---|
| EntitySetTag(NamespacedKey key,
            EntityType... values) | 
| Constructor | Description | 
|---|---|
| EntitySetTag(NamespacedKey key,
            Collection<EntityType> values) | |
| EntitySetTag(NamespacedKey key,
            Collection<EntityType> values,
            Predicate<EntityType>... globalPredicates) | |
| EntitySetTag(NamespacedKey key,
            Predicate<EntityType> filter) | 
| Modifier and Type | Field | Description | 
|---|---|---|
| static Registry<EntityType> | Registry. ENTITY_TYPE | Server entity types. | 
| Modifier and Type | Method | Description | 
|---|---|---|
| void | 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. | 
| String | UnsafeValues. getTranslationKey(EntityType type) | Deprecated. Return the translation key for the EntityType, so the client can translate it into the active
 locale when using a TranslatableComponent. This is null, when the EntityType isn't known to NMS (custom entities) | 
| 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. | 
| Entity | World. spawnEntity(Location loc,
           EntityType type) | Creates a entity at the given  Location | 
| default Entity | World. spawnEntity(Location loc,
           EntityType type,
           CreatureSpawnEvent.SpawnReason reason) | |
| default Entity | World. spawnEntity(Location loc,
           EntityType type,
           CreatureSpawnEvent.SpawnReason reason,
           Consumer<Entity> function) | 
| Modifier and Type | Method | Description | 
|---|---|---|
| EntityType | CreatureSpawner. getSpawnedType() | Get the spawner's creature type. | 
| Modifier and Type | Method | Description | 
|---|---|---|
| void | CreatureSpawner. setSpawnedType(EntityType creatureType) | Set the spawner's creature type. | 
| Modifier and Type | Method | Description | 
|---|---|---|
| static EntityType | EntityType. fromId(int id) | Deprecated.
 Magic value | 
| static EntityType | EntityType. fromName(String name) | Deprecated.
 Magic value | 
| EntityType | Entity. getType() | Get the type of the entity. | 
| static EntityType | EntityType. valueOf(String name) | Returns the enum constant of this type with the specified name. | 
| static EntityType[] | EntityType. values() | Returns an array containing the constants of this enum type, in
the order they are declared. | 
| Modifier and Type | Method | Description | 
|---|---|---|
| EntityType | EntityEvent. getEntityType() | Gets the EntityType of the Entity involved in this event. | 
| Modifier and Type | Method | Description | 
|---|---|---|
| EntityType | PlayerStatisticIncrementEvent. getEntityType() | Gets the EntityType if  getStatistic()is an
 entity statistic otherwise returns null. | 
| EntityType | PlayerEggThrowEvent. getHatchingType() | Get the type of the mob being hatched (EntityType.CHICKEN by default) | 
| Modifier and Type | Method | Description | 
|---|---|---|
| void | PlayerEggThrowEvent. setHatchingType(EntityType hatchType) | Change the type of mob being hatched by the egg | 
| Constructor | Description | 
|---|---|
| PlayerEggThrowEvent(Player player,
                   Egg egg,
                   boolean hatching,
                   byte numHatches,
                   EntityType hatchingType) | |
| PlayerStatisticIncrementEvent(Player player,
                             Statistic statistic,
                             int initialValue,
                             int newValue,
                             EntityType entityType) | 
| Modifier and Type | Method | Description | 
|---|---|---|
| EntityType | SpawnEggMeta. getSpawnedType() | Deprecated.
 different types are different items | 
| Modifier and Type | Method | Description | 
|---|---|---|
| void | SpawnEggMeta. setSpawnedType(EntityType type) | Deprecated.
 different types are different items | 
| Modifier and Type | Method | Description | 
|---|---|---|
| EntityType | SpawnEgg. getSpawnedType() | Deprecated.
 This is now stored in  SpawnEggMeta. | 
| Modifier and Type | Method | Description | 
|---|---|---|
| void | SpawnEgg. setSpawnedType(EntityType type) | Deprecated.
 This is now stored in  SpawnEggMeta. | 
| Constructor | Description | 
|---|---|
| SpawnEgg(EntityType type) | Deprecated. | 
Copyright © 2021. All rights reserved.