Add 'MONSTER' to CreatureType

By: Erik Broes <erikbroes@grum.nl>
This commit is contained in:
Bukkit/Spigot 2011-03-29 23:09:37 +02:00
parent d17f2813d9
commit ac1bef5739

View file

@ -10,19 +10,19 @@ public enum CreatureType {
CREEPER("Creeper"), CREEPER("Creeper"),
GHAST("Ghast"), GHAST("Ghast"),
GIANT("Giant"), GIANT("Giant"),
MONSTER("Monster"),
PIG("Pig"), PIG("Pig"),
PIG_ZOMBIE("PigZombie"), PIG_ZOMBIE("PigZombie"),
SHEEP("Sheep"), SHEEP("Sheep"),
SKELETON("Skeleton"), SKELETON("Skeleton"),
SLIME("Slime"),
SPIDER("Spider"), SPIDER("Spider"),
ZOMBIE("Zombie"),
SQUID("Squid"), SQUID("Squid"),
SLIME("Slime"); ZOMBIE("Zombie");
private String name; private String name;
private static final Map<String, CreatureType> mapping private static final Map<String, CreatureType> mapping = new HashMap<String, CreatureType>();
= new HashMap<String, CreatureType>();
static { static {
for (CreatureType type : EnumSet.allOf(CreatureType.class)) { for (CreatureType type : EnumSet.allOf(CreatureType.class)) {