public enum EntityType extends Enum<EntityType> implements Keyed
Enum Constant and Description |
---|
AREA_EFFECT_CLOUD |
ARMOR_STAND
Mechanical entity with an inventory for placing weapons / armor into.
|
ARROW
An arrow projectile; may get stuck in the ground.
|
BAT |
BLAZE |
BOAT
A placed boat.
|
CAT |
CAVE_SPIDER |
CHICKEN |
COD |
COW |
CREEPER |
DOLPHIN |
DONKEY |
DRAGON_FIREBALL
Like
FIREBALL but with added effects. |
DROPPED_ITEM
An item resting on the ground.
|
DROWNED |
EGG
A flying chicken egg.
|
ELDER_GUARDIAN |
ENDER_CRYSTAL |
ENDER_DRAGON |
ENDER_PEARL
A flying ender pearl.
|
ENDER_SIGNAL
An ender eye signal.
|
ENDERMAN |
ENDERMITE |
EVOKER |
EVOKER_FANGS |
EXPERIENCE_ORB
An experience orb.
|
FALLING_BLOCK
A block that is going to or is about to fall.
|
FIREBALL
A flying large fireball, as thrown by a Ghast for example.
|
FIREWORK
Internal representation of a Firework once it has been launched.
|
FISHING_HOOK
A fishing line and bobber.
|
FOX |
GHAST |
GIANT |
GUARDIAN |
HORSE |
HUSK |
ILLUSIONER |
IRON_GOLEM |
ITEM_FRAME
An item frame on a wall.
|
LEASH_HITCH
A leash attached to a fencepost.
|
LIGHTNING
A bolt of lightning.
|
LLAMA |
LLAMA_SPIT |
MAGMA_CUBE |
MINECART |
MINECART_CHEST |
MINECART_COMMAND |
MINECART_FURNACE |
MINECART_HOPPER |
MINECART_MOB_SPAWNER |
MINECART_TNT |
MULE |
MUSHROOM_COW |
OCELOT |
PAINTING
A painting on a wall.
|
PANDA |
PARROT |
PHANTOM |
PIG |
PIG_ZOMBIE |
PILLAGER |
PLAYER |
POLAR_BEAR |
PRIMED_TNT
Primed TNT that is about to explode.
|
PUFFERFISH |
RABBIT |
RAVAGER |
SALMON |
SHEEP |
SHULKER |
SHULKER_BULLET
Bullet fired by
SHULKER . |
SILVERFISH |
SKELETON |
SKELETON_HORSE |
SLIME |
SMALL_FIREBALL
A flying small fireball, such as thrown by a Blaze or player.
|
SNOWBALL
A flying snowball.
|
SNOWMAN |
SPECTRAL_ARROW
Like
ARROW but causes the PotionEffectType.GLOWING effect on all team members. |
SPIDER |
SPLASH_POTION
A flying splash potion.
|
SQUID |
STRAY |
THROWN_EXP_BOTTLE
A flying experience bottle.
|
TRADER_LLAMA |
TRIDENT |
TROPICAL_FISH |
TURTLE |
UNKNOWN
An unknown entity without an Entity Class
|
VEX |
VILLAGER |
VINDICATOR |
WANDERING_TRADER |
WITCH |
WITHER |
WITHER_SKELETON |
WITHER_SKULL
A flying wither skull projectile.
|
WOLF |
ZOMBIE |
ZOMBIE_HORSE |
ZOMBIE_VILLAGER |
Modifier and Type | Method and Description |
---|---|
static EntityType |
fromId(int id)
Deprecated.
Magic value
|
static EntityType |
fromName(String name)
Deprecated.
Magic value
|
Class<? extends Entity> |
getEntityClass() |
NamespacedKey |
getKey()
Return the namespaced identifier for this object.
|
String |
getName()
Deprecated.
Magic value
|
short |
getTypeId()
Deprecated.
Magic value
|
boolean |
isAlive() |
boolean |
isSpawnable()
Some entities cannot be spawned using
World.spawnEntity(Location, EntityType) or World.spawn(Location, Class) , usually because they require additional
information in order to spawn. |
static EntityType |
valueOf(String name)
Returns 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.
|
public static final EntityType DROPPED_ITEM
Spawn with World.dropItem(Location, ItemStack)
or World.dropItemNaturally(Location, ItemStack)
public static final EntityType EXPERIENCE_ORB
public static final EntityType AREA_EFFECT_CLOUD
AreaEffectCloud
public static final EntityType ELDER_GUARDIAN
ElderGuardian
public static final EntityType WITHER_SKELETON
WitherSkeleton
public static final EntityType STRAY
Stray
public static final EntityType EGG
public static final EntityType LEASH_HITCH
public static final EntityType PAINTING
public static final EntityType ARROW
public static final EntityType SNOWBALL
public static final EntityType FIREBALL
public static final EntityType SMALL_FIREBALL
public static final EntityType ENDER_PEARL
public static final EntityType ENDER_SIGNAL
public static final EntityType SPLASH_POTION
public static final EntityType THROWN_EXP_BOTTLE
public static final EntityType ITEM_FRAME
public static final EntityType WITHER_SKULL
public static final EntityType PRIMED_TNT
public static final EntityType FALLING_BLOCK
public static final EntityType FIREWORK
public static final EntityType HUSK
Husk
public static final EntityType SPECTRAL_ARROW
ARROW
but causes the PotionEffectType.GLOWING
effect on all team members.public static final EntityType SHULKER_BULLET
SHULKER
.public static final EntityType DRAGON_FIREBALL
FIREBALL
but with added effects.public static final EntityType ZOMBIE_VILLAGER
ZombieVillager
public static final EntityType SKELETON_HORSE
SkeletonHorse
public static final EntityType ZOMBIE_HORSE
ZombieHorse
public static final EntityType ARMOR_STAND
public static final EntityType DONKEY
Donkey
public static final EntityType MULE
Mule
public static final EntityType EVOKER_FANGS
EvokerFangs
public static final EntityType EVOKER
Evoker
public static final EntityType VEX
Vex
public static final EntityType VINDICATOR
Vindicator
public static final EntityType ILLUSIONER
Illusioner
public static final EntityType MINECART_COMMAND
CommandMinecart
public static final EntityType BOAT
public static final EntityType MINECART
RideableMinecart
public static final EntityType MINECART_CHEST
StorageMinecart
public static final EntityType MINECART_FURNACE
PoweredMinecart
public static final EntityType MINECART_TNT
ExplosiveMinecart
public static final EntityType MINECART_HOPPER
HopperMinecart
public static final EntityType MINECART_MOB_SPAWNER
SpawnerMinecart
public static final EntityType CREEPER
public static final EntityType SKELETON
public static final EntityType SPIDER
public static final EntityType GIANT
public static final EntityType ZOMBIE
public static final EntityType SLIME
public static final EntityType GHAST
public static final EntityType PIG_ZOMBIE
public static final EntityType ENDERMAN
public static final EntityType CAVE_SPIDER
public static final EntityType SILVERFISH
public static final EntityType BLAZE
public static final EntityType MAGMA_CUBE
public static final EntityType ENDER_DRAGON
public static final EntityType WITHER
public static final EntityType BAT
public static final EntityType WITCH
public static final EntityType ENDERMITE
public static final EntityType GUARDIAN
public static final EntityType SHULKER
public static final EntityType PIG
public static final EntityType SHEEP
public static final EntityType COW
public static final EntityType CHICKEN
public static final EntityType SQUID
public static final EntityType WOLF
public static final EntityType MUSHROOM_COW
public static final EntityType SNOWMAN
public static final EntityType OCELOT
public static final EntityType IRON_GOLEM
public static final EntityType HORSE
public static final EntityType RABBIT
public static final EntityType POLAR_BEAR
public static final EntityType LLAMA
public static final EntityType LLAMA_SPIT
public static final EntityType PARROT
public static final EntityType VILLAGER
public static final EntityType ENDER_CRYSTAL
public static final EntityType TURTLE
public static final EntityType PHANTOM
public static final EntityType TRIDENT
public static final EntityType COD
public static final EntityType SALMON
public static final EntityType PUFFERFISH
public static final EntityType TROPICAL_FISH
public static final EntityType DROWNED
public static final EntityType DOLPHIN
public static final EntityType CAT
public static final EntityType PANDA
public static final EntityType PILLAGER
public static final EntityType RAVAGER
public static final EntityType TRADER_LLAMA
public static final EntityType WANDERING_TRADER
public static final EntityType FOX
public static final EntityType FISHING_HOOK
public static final EntityType LIGHTNING
Spawn with World.strikeLightning(Location)
.
public static final EntityType PLAYER
public static final EntityType UNKNOWN
public static EntityType[] values()
for (EntityType c : EntityType.values()) System.out.println(c);
public static EntityType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null@Deprecated @Nullable public String getName()
@NotNull public NamespacedKey getKey()
Keyed
@Deprecated public short getTypeId()
@Deprecated @Contract(value="null -> null") @Nullable public static EntityType fromName(@Nullable String name)
name
- the entity type's name@Deprecated @Nullable public static EntityType fromId(int id)
id
- the raw type idpublic boolean isSpawnable()
World.spawnEntity(Location, EntityType)
or World.spawn(Location, Class)
, usually because they require additional
information in order to spawn.public boolean isAlive()
Copyright © 2022. All rights reserved.