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 BLAZEDeprecated.CAVE_SPIDERDeprecated.CHICKENDeprecated.COWDeprecated.CREEPERDeprecated.ENDER_DRAGONDeprecated.ENDERMANDeprecated.ENDERMITEDeprecated.GHASTDeprecated.GIANTDeprecated.GUARDIANDeprecated.MAGMA_CUBEDeprecated.MUSHROOM_COWDeprecated.PIGDeprecated.PIG_ZOMBIEDeprecated.RABBITDeprecated.SHEEPDeprecated.SILVERFISHDeprecated.SKELETONDeprecated.SLIMEDeprecated.SNOWMANDeprecated.SPIDERDeprecated.SQUIDDeprecated.VILLAGERDeprecated.WOLFDeprecated.ZOMBIEDeprecated. -
Method Summary
Modifier and Type Method Description static CreatureTypefromEntityType(EntityType creatureType)Deprecated.static CreatureTypefromId(int id)Deprecated.Magic valuestatic CreatureTypefromName(java.lang.String name)Deprecated.java.lang.Class<? extends Entity>getEntityClass()Deprecated.java.lang.StringgetName()Deprecated.shortgetTypeId()Deprecated.Magic valueEntityTypetoEntityType()Deprecated.static CreatureTypevalueOf(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.
-