java.io.Serializable
, java.lang.Comparable<EntityType>
public enum EntityType extends java.lang.Enum<EntityType>
Enum Constant | 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.
|
CAVE_SPIDER |
|
CHICKEN |
|
COD |
|
COMPLEX_PART |
|
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.
|
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.
|
LINGERING_POTION |
A flying lingering potion
|
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.
|
PARROT |
|
PHANTOM |
|
PIG |
|
PIG_ZOMBIE |
|
PLAYER |
|
POLAR_BEAR |
|
PRIMED_TNT |
Primed TNT that is about to explode.
|
PUFFERFISH |
|
RABBIT |
|
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
TIPPED_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.
|
TIPPED_ARROW |
Like
ARROW but tipped with a specific potion which is applied on
contact. |
TRIDENT |
|
TROPICAL_FISH |
|
TURTLE |
|
UNKNOWN |
An unknown entity without an Entity Class
|
VEX |
|
VILLAGER |
|
VINDICATOR |
|
WEATHER |
|
WITCH |
|
WITHER |
|
WITHER_SKELETON |
|
WITHER_SKULL |
A flying wither skull projectile.
|
WOLF |
|
ZOMBIE |
|
ZOMBIE_HORSE |
|
ZOMBIE_VILLAGER |
Modifier and Type | Method | Description |
---|---|---|
static EntityType |
fromId(int id) |
Deprecated.
Magic value
|
static EntityType |
fromName(java.lang.String name) |
Deprecated.
Magic value
|
java.lang.Class<? extends Entity> |
getEntityClass() |
|
java.lang.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(java.lang.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
TIPPED_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 LINGERING_POTION
public static final EntityType FISHING_HOOK
public static final EntityType LIGHTNING
Spawn with World.strikeLightning(Location)
.
public static final EntityType WEATHER
public static final EntityType PLAYER
public static final EntityType COMPLEX_PART
public static final EntityType TIPPED_ARROW
ARROW
but tipped with a specific potion which is applied on
contact.public static final EntityType UNKNOWN
public static EntityType[] values()
for (EntityType c : EntityType.values()) System.out.println(c);
public static EntityType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null@Deprecated public java.lang.String getName()
public java.lang.Class<? extends Entity> getEntityClass()
@Deprecated public short getTypeId()
@Deprecated public static EntityType fromName(java.lang.String name)
name
- the entity type's name@Deprecated 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 © 2018. All rights reserved.