public enum EntityType extends Enum<EntityType>
Enum Constant and Description |
---|
ARROW
An arrow projectile; may get stuck in the ground.
|
BAT |
BLAZE |
BOAT
A placed boat.
|
CAVE_SPIDER |
CHICKEN |
COMPLEX_PART |
COW |
CREEPER |
DROPPED_ITEM
An item resting on the ground.
|
EGG
A flying chicken egg.
|
ENDER_CRYSTAL |
ENDER_DRAGON |
ENDER_PEARL
A flying ender pearl.
|
ENDER_SIGNAL
An ender eye signal.
|
ENDERMAN |
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 |
FISHING_HOOK
A fishing line and bobber.
|
GHAST |
GIANT |
HORSE |
IRON_GOLEM |
ITEM_FRAME
An item frame on a wall.
|
LEASH_HITCH
A leash attached to a fencepost.
|
LIGHTNING
A bolt of lightning.
|
MAGMA_CUBE |
MINECART |
MINECART_CHEST |
MINECART_COMMAND |
MINECART_FURNACE |
MINECART_HOPPER |
MINECART_MOB_SPAWNER |
MINECART_TNT |
MUSHROOM_COW |
OCELOT |
PAINTING
A painting on a wall.
|
PIG |
PIG_ZOMBIE |
PLAYER |
PRIMED_TNT
Primed TNT that is about to explode.
|
SHEEP |
SILVERFISH |
SKELETON |
SLIME |
SMALL_FIREBALL
A flying small fireball, such as thrown by a Blaze or player.
|
SNOWBALL
A flying snowball.
|
SNOWMAN |
SPIDER |
SPLASH_POTION
A flying splash potion.
|
SQUID |
THROWN_EXP_BOTTLE
A flying experience bottle.
|
UNKNOWN
An unknown entity without an Entity Class
|
VILLAGER |
WEATHER |
WITCH |
WITHER |
WITHER_SKULL
A flying wither skull projectile.
|
WOLF |
ZOMBIE |
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() |
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 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 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 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 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 VILLAGER
public static final EntityType ENDER_CRYSTAL
public static final EntityType SPLASH_POTION
public static final EntityType EGG
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 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 public String getName()
@Deprecated public short getTypeId()
@Deprecated public static EntityType fromName(String name)
@Deprecated public static EntityType fromId(int id)
public 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 © 2014. All rights reserved.