Package org.bukkit.entity
Enum CreatureType
java.lang.Object
java.lang.Enum<CreatureType>
org.bukkit.entity.CreatureType
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<CreatureType>
,java.lang.constant.Constable
@Deprecated public enum CreatureType extends java.lang.Enum<CreatureType>
Deprecated.
Use EntityType instead.
Represents a type of creature.
-
Nested Class Summary
-
Enum Constant Summary
Enum Constants Enum Constant Description BLAZE
Deprecated.CAVE_SPIDER
Deprecated.CHICKEN
Deprecated.COW
Deprecated.CREEPER
Deprecated.ENDER_DRAGON
Deprecated.ENDERMAN
Deprecated.ENDERMITE
Deprecated.GHAST
Deprecated.GIANT
Deprecated.GUARDIAN
Deprecated.MAGMA_CUBE
Deprecated.MUSHROOM_COW
Deprecated.PIG
Deprecated.PIG_ZOMBIE
Deprecated.RABBIT
Deprecated.SHEEP
Deprecated.SILVERFISH
Deprecated.SKELETON
Deprecated.SLIME
Deprecated.SNOWMAN
Deprecated.SPIDER
Deprecated.SQUID
Deprecated.VILLAGER
Deprecated.WOLF
Deprecated.ZOMBIE
Deprecated. -
Method Summary
Modifier and Type Method Description static CreatureType
fromEntityType(EntityType creatureType)
Deprecated.static CreatureType
fromId(int id)
Deprecated.Magic valuestatic CreatureType
fromName(java.lang.String name)
Deprecated.java.lang.Class<? extends Entity>
getEntityClass()
Deprecated.java.lang.String
getName()
Deprecated.short
getTypeId()
Deprecated.Magic valueEntityType
toEntityType()
Deprecated.static CreatureType
valueOf(java.lang.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 are declared.
-
Enum Constant Details
-
CREEPER
Deprecated. -
SKELETON
Deprecated. -
SPIDER
Deprecated. -
GIANT
Deprecated. -
ZOMBIE
Deprecated. -
SLIME
Deprecated. -
GHAST
Deprecated. -
PIG_ZOMBIE
Deprecated. -
ENDERMAN
Deprecated. -
CAVE_SPIDER
Deprecated. -
SILVERFISH
Deprecated. -
BLAZE
Deprecated. -
MAGMA_CUBE
Deprecated. -
ENDER_DRAGON
Deprecated. -
ENDERMITE
Deprecated. -
GUARDIAN
Deprecated. -
PIG
Deprecated. -
SHEEP
Deprecated. -
COW
Deprecated. -
CHICKEN
Deprecated. -
SQUID
Deprecated. -
WOLF
Deprecated. -
MUSHROOM_COW
Deprecated. -
SNOWMAN
Deprecated. -
RABBIT
Deprecated. -
VILLAGER
Deprecated.
-
-
Method Details
-
values
Deprecated.Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getName
public java.lang.String getName()Deprecated. -
getEntityClass
Deprecated. -
getTypeId
@Deprecated public short getTypeId()Deprecated.Magic value- Returns:
- the raw type id
-
fromName
Deprecated. -
fromId
Deprecated.Magic value- Parameters:
id
- the raw type id- Returns:
- the matching CreatureType or null
-
toEntityType
Deprecated. -
fromEntityType
Deprecated.
-