Enum Class EntityType

java.lang.Object
java.lang.Enum<EntityType>
org.bukkit.entity.EntityType
All Implemented Interfaces:
FeatureDependant, Serializable, Comparable<EntityType>, Constable, Keyed, Translatable, Keyed, Translatable

public enum EntityType extends Enum<EntityType> implements Keyed, Translatable, Translatable, FeatureDependant
  • Enum Constant Details Link icon

    • ACACIA_BOAT Link icon

      public static final EntityType ACACIA_BOAT
    • ACACIA_CHEST_BOAT Link icon

      public static final EntityType ACACIA_CHEST_BOAT
    • ALLAY Link icon

      public static final EntityType ALLAY
    • AREA_EFFECT_CLOUD Link icon

      public static final EntityType AREA_EFFECT_CLOUD
    • ARMADILLO Link icon

      public static final EntityType ARMADILLO
    • ARMOR_STAND Link icon

      public static final EntityType ARMOR_STAND
    • ARROW Link icon

      public static final EntityType ARROW
    • AXOLOTL Link icon

      public static final EntityType AXOLOTL
    • BAMBOO_CHEST_RAFT Link icon

      public static final EntityType BAMBOO_CHEST_RAFT
    • BAMBOO_RAFT Link icon

      public static final EntityType BAMBOO_RAFT
    • BAT Link icon

      public static final EntityType BAT
    • BEE Link icon

      public static final EntityType BEE
    • BIRCH_BOAT Link icon

      public static final EntityType BIRCH_BOAT
    • BIRCH_CHEST_BOAT Link icon

      public static final EntityType BIRCH_CHEST_BOAT
    • BLAZE Link icon

      public static final EntityType BLAZE
    • BLOCK_DISPLAY Link icon

      public static final EntityType BLOCK_DISPLAY
    • BOGGED Link icon

      public static final EntityType BOGGED
    • BREEZE Link icon

      public static final EntityType BREEZE
    • BREEZE_WIND_CHARGE Link icon

      public static final EntityType BREEZE_WIND_CHARGE
    • CAMEL Link icon

      public static final EntityType CAMEL
    • CAT Link icon

      public static final EntityType CAT
    • CAVE_SPIDER Link icon

      public static final EntityType CAVE_SPIDER
    • CHERRY_BOAT Link icon

      public static final EntityType CHERRY_BOAT
    • CHERRY_CHEST_BOAT Link icon

      public static final EntityType CHERRY_CHEST_BOAT
    • CHEST_MINECART Link icon

      public static final EntityType CHEST_MINECART
    • CHICKEN Link icon

      public static final EntityType CHICKEN
    • COD Link icon

      public static final EntityType COD
    • COMMAND_BLOCK_MINECART Link icon

      public static final EntityType COMMAND_BLOCK_MINECART
    • COW Link icon

      public static final EntityType COW
    • CREAKING Link icon

      public static final EntityType CREAKING
    • CREEPER Link icon

      public static final EntityType CREEPER
    • DARK_OAK_BOAT Link icon

      public static final EntityType DARK_OAK_BOAT
    • DARK_OAK_CHEST_BOAT Link icon

      public static final EntityType DARK_OAK_CHEST_BOAT
    • DOLPHIN Link icon

      public static final EntityType DOLPHIN
    • DONKEY Link icon

      public static final EntityType DONKEY
    • DRAGON_FIREBALL Link icon

      public static final EntityType DRAGON_FIREBALL
    • DROWNED Link icon

      public static final EntityType DROWNED
    • EGG Link icon

      public static final EntityType EGG
    • ELDER_GUARDIAN Link icon

      public static final EntityType ELDER_GUARDIAN
    • END_CRYSTAL Link icon

      public static final EntityType END_CRYSTAL
    • ENDER_DRAGON Link icon

      public static final EntityType ENDER_DRAGON
    • ENDER_PEARL Link icon

      public static final EntityType ENDER_PEARL
    • ENDERMAN Link icon

      public static final EntityType ENDERMAN
    • ENDERMITE Link icon

      public static final EntityType ENDERMITE
    • EVOKER Link icon

      public static final EntityType EVOKER
    • EVOKER_FANGS Link icon

      public static final EntityType EVOKER_FANGS
    • EXPERIENCE_BOTTLE Link icon

      public static final EntityType EXPERIENCE_BOTTLE
    • EXPERIENCE_ORB Link icon

      public static final EntityType EXPERIENCE_ORB
    • EYE_OF_ENDER Link icon

      public static final EntityType EYE_OF_ENDER
    • FALLING_BLOCK Link icon

      public static final EntityType FALLING_BLOCK
    • FIREBALL Link icon

      public static final EntityType FIREBALL
    • FIREWORK_ROCKET Link icon

      public static final EntityType FIREWORK_ROCKET
    • FISHING_BOBBER Link icon

      public static final EntityType FISHING_BOBBER
    • FOX Link icon

      public static final EntityType FOX
    • FROG Link icon

      public static final EntityType FROG
    • FURNACE_MINECART Link icon

      public static final EntityType FURNACE_MINECART
    • GHAST Link icon

      public static final EntityType GHAST
    • GIANT Link icon

      public static final EntityType GIANT
    • GLOW_ITEM_FRAME Link icon

      public static final EntityType GLOW_ITEM_FRAME
    • GLOW_SQUID Link icon

      public static final EntityType GLOW_SQUID
    • GOAT Link icon

      public static final EntityType GOAT
    • GUARDIAN Link icon

      public static final EntityType GUARDIAN
    • HOGLIN Link icon

      public static final EntityType HOGLIN
    • HOPPER_MINECART Link icon

      public static final EntityType HOPPER_MINECART
    • HORSE Link icon

      public static final EntityType HORSE
    • HUSK Link icon

      public static final EntityType HUSK
    • ILLUSIONER Link icon

      public static final EntityType ILLUSIONER
    • INTERACTION Link icon

      public static final EntityType INTERACTION
    • IRON_GOLEM Link icon

      public static final EntityType IRON_GOLEM
    • ITEM Link icon

      public static final EntityType ITEM
    • ITEM_DISPLAY Link icon

      public static final EntityType ITEM_DISPLAY
    • ITEM_FRAME Link icon

      public static final EntityType ITEM_FRAME
    • JUNGLE_BOAT Link icon

      public static final EntityType JUNGLE_BOAT
    • JUNGLE_CHEST_BOAT Link icon

      public static final EntityType JUNGLE_CHEST_BOAT
    • LEASH_KNOT Link icon

      public static final EntityType LEASH_KNOT
    • LIGHTNING_BOLT Link icon

      public static final EntityType LIGHTNING_BOLT
    • LINGERING_POTION Link icon

      public static final EntityType LINGERING_POTION
    • LLAMA Link icon

      public static final EntityType LLAMA
    • LLAMA_SPIT Link icon

      public static final EntityType LLAMA_SPIT
    • MAGMA_CUBE Link icon

      public static final EntityType MAGMA_CUBE
    • MANGROVE_BOAT Link icon

      public static final EntityType MANGROVE_BOAT
    • MANGROVE_CHEST_BOAT Link icon

      public static final EntityType MANGROVE_CHEST_BOAT
    • MARKER Link icon

      public static final EntityType MARKER
    • MINECART Link icon

      public static final EntityType MINECART
    • MOOSHROOM Link icon

      public static final EntityType MOOSHROOM
    • MULE Link icon

      public static final EntityType MULE
    • OAK_BOAT Link icon

      public static final EntityType OAK_BOAT
    • OAK_CHEST_BOAT Link icon

      public static final EntityType OAK_CHEST_BOAT
    • OCELOT Link icon

      public static final EntityType OCELOT
    • OMINOUS_ITEM_SPAWNER Link icon

      public static final EntityType OMINOUS_ITEM_SPAWNER
    • PAINTING Link icon

      public static final EntityType PAINTING
    • PALE_OAK_BOAT Link icon

      public static final EntityType PALE_OAK_BOAT
    • PALE_OAK_CHEST_BOAT Link icon

      public static final EntityType PALE_OAK_CHEST_BOAT
    • PANDA Link icon

      public static final EntityType PANDA
    • PARROT Link icon

      public static final EntityType PARROT
    • PHANTOM Link icon

      public static final EntityType PHANTOM
    • PIG Link icon

      public static final EntityType PIG
    • PIGLIN Link icon

      public static final EntityType PIGLIN
    • PIGLIN_BRUTE Link icon

      public static final EntityType PIGLIN_BRUTE
    • PILLAGER Link icon

      public static final EntityType PILLAGER
    • PLAYER Link icon

      public static final EntityType PLAYER
    • POLAR_BEAR Link icon

      public static final EntityType POLAR_BEAR
    • PUFFERFISH Link icon

      public static final EntityType PUFFERFISH
    • RABBIT Link icon

      public static final EntityType RABBIT
    • RAVAGER Link icon

      public static final EntityType RAVAGER
    • SALMON Link icon

      public static final EntityType SALMON
    • SHEEP Link icon

      public static final EntityType SHEEP
    • SHULKER Link icon

      public static final EntityType SHULKER
    • SHULKER_BULLET Link icon

      public static final EntityType SHULKER_BULLET
    • SILVERFISH Link icon

      public static final EntityType SILVERFISH
    • SKELETON Link icon

      public static final EntityType SKELETON
    • SKELETON_HORSE Link icon

      public static final EntityType SKELETON_HORSE
    • SLIME Link icon

      public static final EntityType SLIME
    • SMALL_FIREBALL Link icon

      public static final EntityType SMALL_FIREBALL
    • SNIFFER Link icon

      public static final EntityType SNIFFER
    • SNOW_GOLEM Link icon

      public static final EntityType SNOW_GOLEM
    • SNOWBALL Link icon

      public static final EntityType SNOWBALL
    • SPAWNER_MINECART Link icon

      public static final EntityType SPAWNER_MINECART
    • SPECTRAL_ARROW Link icon

      public static final EntityType SPECTRAL_ARROW
    • SPIDER Link icon

      public static final EntityType SPIDER
    • SPLASH_POTION Link icon

      public static final EntityType SPLASH_POTION
    • SPRUCE_BOAT Link icon

      public static final EntityType SPRUCE_BOAT
    • SPRUCE_CHEST_BOAT Link icon

      public static final EntityType SPRUCE_CHEST_BOAT
    • SQUID Link icon

      public static final EntityType SQUID
    • STRAY Link icon

      public static final EntityType STRAY
    • STRIDER Link icon

      public static final EntityType STRIDER
    • TADPOLE Link icon

      public static final EntityType TADPOLE
    • TEXT_DISPLAY Link icon

      public static final EntityType TEXT_DISPLAY
    • TNT Link icon

      public static final EntityType TNT
    • TNT_MINECART Link icon

      public static final EntityType TNT_MINECART
    • TRADER_LLAMA Link icon

      public static final EntityType TRADER_LLAMA
    • TRIDENT Link icon

      public static final EntityType TRIDENT
    • TROPICAL_FISH Link icon

      public static final EntityType TROPICAL_FISH
    • TURTLE Link icon

      public static final EntityType TURTLE
    • VEX Link icon

      public static final EntityType VEX
    • VILLAGER Link icon

      public static final EntityType VILLAGER
    • VINDICATOR Link icon

      public static final EntityType VINDICATOR
    • WANDERING_TRADER Link icon

      public static final EntityType WANDERING_TRADER
    • WARDEN Link icon

      public static final EntityType WARDEN
    • WIND_CHARGE Link icon

      public static final EntityType WIND_CHARGE
    • WITCH Link icon

      public static final EntityType WITCH
    • WITHER Link icon

      public static final EntityType WITHER
    • WITHER_SKELETON Link icon

      public static final EntityType WITHER_SKELETON
    • WITHER_SKULL Link icon

      public static final EntityType WITHER_SKULL
    • WOLF Link icon

      public static final EntityType WOLF
    • ZOGLIN Link icon

      public static final EntityType ZOGLIN
    • ZOMBIE Link icon

      public static final EntityType ZOMBIE
    • ZOMBIE_HORSE Link icon

      public static final EntityType ZOMBIE_HORSE
    • ZOMBIE_VILLAGER Link icon

      public static final EntityType ZOMBIE_VILLAGER
    • ZOMBIFIED_PIGLIN Link icon

      public static final EntityType ZOMBIFIED_PIGLIN
    • UNKNOWN Link icon

      public static final EntityType UNKNOWN
      An unknown entity without an Entity Class
  • Method Details Link icon

    • values Link icon

      public static EntityType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf Link icon

      public static EntityType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getName Link icon

      @Deprecated(since="1.6.2") @Nullable public @Nullable String getName()
      Deprecated.
      Magic value
      Gets the entity type name.
      Returns:
      the entity type's name
    • getKey Link icon

      @NotNull public @NotNull NamespacedKey getKey()
      Description copied from interface: Keyed
      Return the namespaced identifier for this object.
      Specified by:
      getKey in interface Keyed
      Returns:
      this object's key
    • getEntityClass Link icon

      @Nullable public @Nullable Class<? extends Entity> getEntityClass()
    • getTypeId Link icon

      @Deprecated(since="1.6.2", forRemoval=true) public short getTypeId()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Magic value
      Gets the entity type id.
      Returns:
      the raw type id
    • fromName Link icon

      @Internal @Contract("null -> null") @Nullable public static @Nullable EntityType fromName(@Nullable @Nullable String name)
      Gets an entity type from its name.
      Parameters:
      name - the entity type's name
      Returns:
      the matching entity type or null
      API Note:
      Internal Use Only
    • fromId Link icon

      @Deprecated(since="1.6.2", forRemoval=true) @Nullable public static @Nullable EntityType fromId(int id)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Magic value
      Gets an entity from its id.
      Parameters:
      id - the raw type id
      Returns:
      the matching entity type or null
    • isSpawnable Link icon

      public boolean isSpawnable()
      Some entities cannot be spawned using RegionAccessor.spawnEntity(Location, EntityType) or RegionAccessor.spawn(Location, Class), usually because they require additional information in order to spawn.
      Returns:
      False if the entity type cannot be spawned
    • isAlive Link icon

      public boolean isAlive()
    • getTranslationKey Link icon

      @NotNull @Deprecated(forRemoval=true) public @NotNull String getTranslationKey()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: Translatable
      Get the translation key, suitable for use in a translation component.
      Specified by:
      getTranslationKey in interface Translatable
      Returns:
      the translation key
    • translationKey Link icon

      @NotNull public @NotNull String translationKey()
      Description copied from interface: net.kyori.adventure.translation.Translatable
      Gets the translation key.
      Specified by:
      translationKey in interface Translatable
      Returns:
      the translation key
      Throws:
      IllegalArgumentException - if the entity does not have a translation key (is probably a custom entity)
    • hasDefaultAttributes Link icon

      public boolean hasDefaultAttributes()
      Checks if the entity has default attributes.
      Returns:
      true if it has default attributes
    • getDefaultAttributes Link icon

      @NotNull public Attributable getDefaultAttributes()
      Gets the default attributes for the entity.
      Returns:
      an unmodifiable instance of Attributable for reading default attributes.
      Throws:
      IllegalArgumentException - if the entity does not exist of have default attributes (use hasDefaultAttributes() first)
    • isEnabledByFeature Link icon

      @Deprecated(forRemoval=true, since="1.20") public boolean isEnabledByFeature(@NotNull @NotNull World world)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Gets if this EntityType is enabled by feature in a world.
      Parameters:
      world - the world to check
      Returns:
      true if this EntityType can be used to spawn an Entity for this World.