org.bukkit.entity
Enum EntityType

java.lang.Object
  extended by java.lang.Enum<EntityType>
      extended by org.bukkit.entity.EntityType
All Implemented Interfaces:
Serializable, Comparable<EntityType>

public enum EntityType
extends Enum<EntityType>


Enum Constant Summary
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_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
           
 
Method Summary
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.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

DROPPED_ITEM

public static final EntityType DROPPED_ITEM
An item resting on the ground.

Spawn with World.dropItem(Location, ItemStack) or World.dropItemNaturally(Location, ItemStack)


EXPERIENCE_ORB

public static final EntityType EXPERIENCE_ORB
An experience orb.


LEASH_HITCH

public static final EntityType LEASH_HITCH
A leash attached to a fencepost.


PAINTING

public static final EntityType PAINTING
A painting on a wall.


ARROW

public static final EntityType ARROW
An arrow projectile; may get stuck in the ground.


SNOWBALL

public static final EntityType SNOWBALL
A flying snowball.


FIREBALL

public static final EntityType FIREBALL
A flying large fireball, as thrown by a Ghast for example.


SMALL_FIREBALL

public static final EntityType SMALL_FIREBALL
A flying small fireball, such as thrown by a Blaze or player.


ENDER_PEARL

public static final EntityType ENDER_PEARL
A flying ender pearl.


ENDER_SIGNAL

public static final EntityType ENDER_SIGNAL
An ender eye signal.


THROWN_EXP_BOTTLE

public static final EntityType THROWN_EXP_BOTTLE
A flying experience bottle.


ITEM_FRAME

public static final EntityType ITEM_FRAME
An item frame on a wall.


WITHER_SKULL

public static final EntityType WITHER_SKULL
A flying wither skull projectile.


PRIMED_TNT

public static final EntityType PRIMED_TNT
Primed TNT that is about to explode.


FALLING_BLOCK

public static final EntityType FALLING_BLOCK
A block that is going to or is about to fall.


FIREWORK

public static final EntityType FIREWORK

BOAT

public static final EntityType BOAT
A placed boat.


MINECART

public static final EntityType MINECART
See Also:
RideableMinecart

MINECART_CHEST

public static final EntityType MINECART_CHEST
See Also:
StorageMinecart

MINECART_FURNACE

public static final EntityType MINECART_FURNACE
See Also:
PoweredMinecart

MINECART_TNT

public static final EntityType MINECART_TNT
See Also:
ExplosiveMinecart

MINECART_HOPPER

public static final EntityType MINECART_HOPPER
See Also:
HopperMinecart

MINECART_MOB_SPAWNER

public static final EntityType MINECART_MOB_SPAWNER
See Also:
SpawnerMinecart

CREEPER

public static final EntityType CREEPER

SKELETON

public static final EntityType SKELETON

SPIDER

public static final EntityType SPIDER

GIANT

public static final EntityType GIANT

ZOMBIE

public static final EntityType ZOMBIE

SLIME

public static final EntityType SLIME

GHAST

public static final EntityType GHAST

PIG_ZOMBIE

public static final EntityType PIG_ZOMBIE

ENDERMAN

public static final EntityType ENDERMAN

CAVE_SPIDER

public static final EntityType CAVE_SPIDER

SILVERFISH

public static final EntityType SILVERFISH

BLAZE

public static final EntityType BLAZE

MAGMA_CUBE

public static final EntityType MAGMA_CUBE

ENDER_DRAGON

public static final EntityType ENDER_DRAGON

WITHER

public static final EntityType WITHER

BAT

public static final EntityType BAT

WITCH

public static final EntityType WITCH

PIG

public static final EntityType PIG

SHEEP

public static final EntityType SHEEP

COW

public static final EntityType COW

CHICKEN

public static final EntityType CHICKEN

SQUID

public static final EntityType SQUID

WOLF

public static final EntityType WOLF

MUSHROOM_COW

public static final EntityType MUSHROOM_COW

SNOWMAN

public static final EntityType SNOWMAN

OCELOT

public static final EntityType OCELOT

IRON_GOLEM

public static final EntityType IRON_GOLEM

HORSE

public static final EntityType HORSE

VILLAGER

public static final EntityType VILLAGER

ENDER_CRYSTAL

public static final EntityType ENDER_CRYSTAL

SPLASH_POTION

public static final EntityType SPLASH_POTION
A flying splash potion.


EGG

public static final EntityType EGG
A flying chicken egg.


FISHING_HOOK

public static final EntityType FISHING_HOOK
A fishing line and bobber.


LIGHTNING

public static final EntityType LIGHTNING
A bolt of lightning. Spawn with World.strikeLightning(Location).


WEATHER

public static final EntityType WEATHER

PLAYER

public static final EntityType PLAYER

COMPLEX_PART

public static final EntityType COMPLEX_PART

UNKNOWN

public static final EntityType UNKNOWN
An unknown entity without an Entity Class

Method Detail

values

public static EntityType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (EntityType c : EntityType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static EntityType valueOf(String name)
Returns 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

getName

@Deprecated
public String getName()
Deprecated. Magic value


getEntityClass

public Class<? extends Entity> getEntityClass()

getTypeId

@Deprecated
public short getTypeId()
Deprecated. Magic value


fromName

@Deprecated
public static EntityType fromName(String name)
Deprecated. Magic value


fromId

@Deprecated
public static EntityType fromId(int id)
Deprecated. Magic value


isSpawnable

public 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.

Returns:
False if the entity type cannot be spawned

isAlive

public boolean isAlive()


Copyright © 2013. All Rights Reserved.