org.bukkit.entity
Enum CreatureType

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

Deprecated. Use EntityType instead.

@Deprecated
public enum CreatureType
extends Enum<CreatureType>

Represents a type of creature.


Enum Constant Summary
BLAZE
          Deprecated.  
CAVE_SPIDER
          Deprecated.  
CHICKEN
          Deprecated.  
COW
          Deprecated.  
CREEPER
          Deprecated.  
ENDER_DRAGON
          Deprecated.  
ENDERMAN
          Deprecated.  
GHAST
          Deprecated.  
GIANT
          Deprecated.  
MAGMA_CUBE
          Deprecated.  
MUSHROOM_COW
          Deprecated.  
PIG
          Deprecated.  
PIG_ZOMBIE
          Deprecated.  
SHEEP
          Deprecated.  
SILVERFISH
          Deprecated.  
SKELETON
          Deprecated.  
SLIME
          Deprecated.  
SNOWMAN
          Deprecated.  
SPIDER
          Deprecated.  
SQUID
          Deprecated.  
VILLAGER
          Deprecated.  
WOLF
          Deprecated.  
ZOMBIE
          Deprecated.  
 
Method Summary
static CreatureType fromEntityType(EntityType creatureType)
          Deprecated.  
static CreatureType fromId(int id)
          Deprecated.  
static CreatureType fromName(String name)
          Deprecated.  
 Class<? extends Entity> getEntityClass()
          Deprecated.  
 String getName()
          Deprecated.  
 short getTypeId()
          Deprecated.  
 EntityType toEntityType()
          Deprecated. 
static CreatureType valueOf(String name)
          Deprecated. Returns the enum constant of this type with the specified name.
static CreatureType[] values()
          Deprecated. Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

CREEPER

public static final CreatureType CREEPER
Deprecated. 

SKELETON

public static final CreatureType SKELETON
Deprecated. 

SPIDER

public static final CreatureType SPIDER
Deprecated. 

GIANT

public static final CreatureType GIANT
Deprecated. 

ZOMBIE

public static final CreatureType ZOMBIE
Deprecated. 

SLIME

public static final CreatureType SLIME
Deprecated. 

GHAST

public static final CreatureType GHAST
Deprecated. 

PIG_ZOMBIE

public static final CreatureType PIG_ZOMBIE
Deprecated. 

ENDERMAN

public static final CreatureType ENDERMAN
Deprecated. 

CAVE_SPIDER

public static final CreatureType CAVE_SPIDER
Deprecated. 

SILVERFISH

public static final CreatureType SILVERFISH
Deprecated. 

BLAZE

public static final CreatureType BLAZE
Deprecated. 

MAGMA_CUBE

public static final CreatureType MAGMA_CUBE
Deprecated. 

ENDER_DRAGON

public static final CreatureType ENDER_DRAGON
Deprecated. 

PIG

public static final CreatureType PIG
Deprecated. 

SHEEP

public static final CreatureType SHEEP
Deprecated. 

COW

public static final CreatureType COW
Deprecated. 

CHICKEN

public static final CreatureType CHICKEN
Deprecated. 

SQUID

public static final CreatureType SQUID
Deprecated. 

WOLF

public static final CreatureType WOLF
Deprecated. 

MUSHROOM_COW

public static final CreatureType MUSHROOM_COW
Deprecated. 

SNOWMAN

public static final CreatureType SNOWMAN
Deprecated. 

VILLAGER

public static final CreatureType VILLAGER
Deprecated. 
Method Detail

values

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

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

valueOf

public static CreatureType valueOf(String name)
Deprecated. 
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

getName

public String getName()
Deprecated. 

getEntityClass

public Class<? extends Entity> getEntityClass()
Deprecated. 

getTypeId

public short getTypeId()
Deprecated. 

fromName

public static CreatureType fromName(String name)
Deprecated. 

fromId

public static CreatureType fromId(int id)
Deprecated. 

toEntityType

@Deprecated
public EntityType toEntityType()
Deprecated. 


fromEntityType

public static CreatureType fromEntityType(EntityType creatureType)
Deprecated. 


Copyright © 2013. All Rights Reserved.