Package org.bukkit.entity
Enum EntityType
- All Implemented Interfaces:
- Serializable,- Comparable<EntityType>,- java.lang.constant.Constable,- Keyed
- 
Nested Class SummaryNested classes/interfaces inherited from class java.lang.EnumEnum.EnumDesc<E extends Enum<E>>
- 
Enum Constant SummaryEnum ConstantsEnum ConstantDescriptionMechanical entity with an inventory for placing weapons / armor into.An arrow projectile; may get stuck in the ground.A placed boat.LikeFIREBALLbut with added effects.An item resting on the ground.A flying chicken egg.A flying ender pearl.An ender eye signal.An experience orb.A block that is going to or is about to fall.A flying large fireball, as thrown by a Ghast for example.Internal representation of a Firework once it has been launched.A fishing line and bobber.An item frame on a wall.A leash attached to a fencepost.A bolt of lightning.A painting on a wall.Primed TNT that is about to explode.Bullet fired bySHULKER.A flying small fireball, such as thrown by a Blaze or player.A flying snowball.LikeARROWbut causes thePotionEffectType.GLOWINGeffect on all team members.A flying splash potion.A flying experience bottle.An unknown entity without an Entity ClassA flying wither skull projectile.
- 
Method SummaryModifier and TypeMethodDescriptionstatic EntityTypefromId(int id)Deprecated.Magic valuestatic EntityTypeDeprecated.Magic valuegetKey()Return the namespaced identifier for this object.getName()Deprecated.Magic valueshortDeprecated.Magic valuebooleanisAlive()booleanSome entities cannot be spawned usingRegionAccessor.spawnEntity(Location, EntityType)orRegionAccessor.spawn(Location, Class), usually because they require additional information in order to spawn.static EntityTypeReturns the enum constant of this type with the specified name.static EntityType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
- 
Enum Constant Details- 
DROPPED_ITEMAn item resting on the ground.Spawn with World.dropItem(Location, ItemStack)orWorld.dropItemNaturally(Location, ItemStack)
- 
EXPERIENCE_ORBAn experience orb.
- 
AREA_EFFECT_CLOUD- See Also:
- AreaEffectCloud
 
- 
ELDER_GUARDIAN- See Also:
- ElderGuardian
 
- 
WITHER_SKELETON- See Also:
- WitherSkeleton
 
- 
STRAY- See Also:
- Stray
 
- 
EGGA flying chicken egg.
- 
LEASH_HITCHA leash attached to a fencepost.
- 
PAINTINGA painting on a wall.
- 
ARROWAn arrow projectile; may get stuck in the ground.
- 
SNOWBALLA flying snowball.
- 
FIREBALLA flying large fireball, as thrown by a Ghast for example.
- 
SMALL_FIREBALLA flying small fireball, such as thrown by a Blaze or player.
- 
ENDER_PEARLA flying ender pearl.
- 
ENDER_SIGNALAn ender eye signal.
- 
SPLASH_POTIONA flying splash potion.
- 
THROWN_EXP_BOTTLEA flying experience bottle.
- 
ITEM_FRAMEAn item frame on a wall.
- 
WITHER_SKULLA flying wither skull projectile.
- 
PRIMED_TNTPrimed TNT that is about to explode.
- 
FALLING_BLOCKA block that is going to or is about to fall.
- 
FIREWORKInternal representation of a Firework once it has been launched.
- 
HUSK- See Also:
- Husk
 
- 
SPECTRAL_ARROWLikeARROWbut causes thePotionEffectType.GLOWINGeffect on all team members.
- 
SHULKER_BULLETBullet fired bySHULKER.
- 
DRAGON_FIREBALLLikeFIREBALLbut with added effects.
- 
ZOMBIE_VILLAGER- See Also:
- ZombieVillager
 
- 
SKELETON_HORSE- See Also:
- SkeletonHorse
 
- 
ZOMBIE_HORSE- See Also:
- ZombieHorse
 
- 
ARMOR_STANDMechanical entity with an inventory for placing weapons / armor into.
- 
DONKEY- See Also:
- Donkey
 
- 
MULE- See Also:
- Mule
 
- 
EVOKER_FANGS- See Also:
- EvokerFangs
 
- 
EVOKER- See Also:
- Evoker
 
- 
VEX- See Also:
- Vex
 
- 
VINDICATOR- See Also:
- Vindicator
 
- 
ILLUSIONER- See Also:
- Illusioner
 
- 
MINECART_COMMAND- See Also:
- CommandMinecart
 
- 
BOATA placed boat.
- 
MINECART- See Also:
- RideableMinecart
 
- 
MINECART_CHEST- See Also:
- StorageMinecart
 
- 
MINECART_FURNACE- See Also:
- PoweredMinecart
 
- 
MINECART_TNT- See Also:
- ExplosiveMinecart
 
- 
MINECART_HOPPER- See Also:
- HopperMinecart
 
- 
MINECART_MOB_SPAWNER- See Also:
- SpawnerMinecart
 
- 
CREEPER
- 
SKELETON
- 
SPIDER
- 
GIANT
- 
ZOMBIE
- 
SLIME
- 
GHAST
- 
ZOMBIFIED_PIGLIN
- 
ENDERMAN
- 
CAVE_SPIDER
- 
SILVERFISH
- 
BLAZE
- 
MAGMA_CUBE
- 
ENDER_DRAGON
- 
WITHER
- 
BAT
- 
WITCH
- 
ENDERMITE
- 
GUARDIAN
- 
SHULKER
- 
PIG
- 
SHEEP
- 
COW
- 
CHICKEN
- 
SQUID
- 
WOLF
- 
MUSHROOM_COW
- 
SNOWMAN
- 
OCELOT
- 
IRON_GOLEM
- 
HORSE
- 
RABBIT
- 
POLAR_BEAR
- 
LLAMA
- 
LLAMA_SPIT
- 
PARROT
- 
VILLAGER
- 
ENDER_CRYSTAL
- 
TURTLE
- 
PHANTOM
- 
TRIDENT
- 
COD
- 
SALMON
- 
PUFFERFISH
- 
TROPICAL_FISH
- 
DROWNED
- 
DOLPHIN
- 
CAT
- 
PANDA
- 
PILLAGER
- 
RAVAGER
- 
TRADER_LLAMA
- 
WANDERING_TRADER
- 
FOX
- 
BEE
- 
HOGLIN
- 
PIGLIN
- 
STRIDER
- 
ZOGLIN
- 
PIGLIN_BRUTE
- 
AXOLOTL
- 
GLOW_ITEM_FRAME
- 
GLOW_SQUID
- 
GOAT
- 
MARKER
- 
FISHING_HOOKA fishing line and bobber.
- 
LIGHTNINGA bolt of lightning.Spawn with World.strikeLightning(Location).
- 
PLAYER
- 
UNKNOWNAn unknown entity without an Entity Class
 
- 
- 
Method Details- 
valuesReturns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
 
- 
valueOfReturns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
- NullPointerException- if the argument is null
 
- 
getNameDeprecated.Magic valueGets the entity type name.- Returns:
- the entity type's name
 
- 
getKeyDescription copied from interface:KeyedReturn the namespaced identifier for this object.
- 
getEntityClass
- 
getTypeIdDeprecated.Magic valueGets the entity type id.- Returns:
- the raw type id
 
- 
fromName@Deprecated @Contract("null -> null") @Nullable public static EntityType fromName(@Nullable String name)Deprecated.Magic valueGets an entity type from its name.- Parameters:
- name- the entity type's name
- Returns:
- the matching entity type or null
 
- 
fromIdDeprecated.Magic valueGets an entity from its id.- Parameters:
- id- the raw type id
- Returns:
- the matching entity type or null
 
- 
isSpawnablepublic boolean isSpawnable()Some entities cannot be spawned usingRegionAccessor.spawnEntity(Location, EntityType)orRegionAccessor.spawn(Location, Class), usually because they require additional information in order to spawn.- Returns:
- False if the entity type cannot be spawned
 
- 
isAlivepublic boolean isAlive()
 
-