Bukkit-API  1.7.9-R0.2
The inofficial Bukkit-API
org.bukkit.entity.CreatureType Enum Reference

Public Member Functions

String getName ()
 
Class<?extends EntitygetEntityClass ()
 
short getTypeId ()
 
EntityType toEntityType ()
 

Static Public Member Functions

 [static initializer]
 
static CreatureType fromName (String name)
 
static CreatureType fromId (int id)
 
static CreatureType fromEntityType (EntityType creatureType)
 

Public Attributes

 CREEPER =("Creeper", Creeper.class, 50)
 
 SKELETON =("Skeleton", Skeleton.class, 51)
 
 SPIDER =("Spider", Spider.class, 52)
 
 GIANT =("Giant", Giant.class, 53)
 
 ZOMBIE =("Zombie", Zombie.class, 54)
 
 SLIME =("Slime", Slime.class, 55)
 
 GHAST =("Ghast", Ghast.class, 56)
 
 PIG_ZOMBIE =("PigZombie", PigZombie.class, 57)
 
 ENDERMAN =("Enderman", Enderman.class, 58)
 
 CAVE_SPIDER =("CaveSpider", CaveSpider.class, 59)
 
 SILVERFISH =("Silverfish", Silverfish.class, 60)
 
 BLAZE =("Blaze", Blaze.class, 61)
 
 MAGMA_CUBE =("LavaSlime", MagmaCube.class, 62)
 
 ENDER_DRAGON =("EnderDragon", EnderDragon.class, 63)
 
 PIG =("Pig", Pig.class, 90)
 
 SHEEP =("Sheep", Sheep.class, 91)
 
 COW =("Cow", Cow.class, 92)
 
 CHICKEN =("Chicken", Chicken.class, 93)
 
 SQUID =("Squid", Squid.class, 94)
 
 WOLF =("Wolf", Wolf.class, 95)
 
 MUSHROOM_COW =("MushroomCow", MushroomCow.class, 96)
 
 SNOWMAN =("SnowMan", Snowman.class, 97)
 
 VILLAGER =("Villager", Villager.class, 120)
 

Detailed Description

Represents a type of creature.

Deprecated:
Use EntityType instead.

Definition at line 13 of file CreatureType.java.

Member Function Documentation

static CreatureType org.bukkit.entity.CreatureType.fromId ( int  id)
static
Deprecated:
Magic value

Definition at line 87 of file CreatureType.java.

87  {
88  if (id > Short.MAX_VALUE) {
89  return null;
90  }
91  return ID_MAP.get((short) id);
92  }
short org.bukkit.entity.CreatureType.getTypeId ( )
Deprecated:
Magic value

Definition at line 74 of file CreatureType.java.

74  {
75  return typeId;
76  }

The documentation for this enum was generated from the following file: