public enum EnumCreatureType extends Enum<EnumCreatureType>
Enum Constant and Description |
---|
ambient |
creature |
monster |
waterCreature |
Modifier and Type | Method and Description |
---|---|
boolean |
getAnimal()
Return whether this creature type is an animal.
|
Class |
getCreatureClass() |
Material |
getCreatureMaterial() |
int |
getMaxNumberOfCreature() |
boolean |
getPeacefulCreature()
Gets whether or not this creature type is peaceful.
|
static EnumCreatureType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EnumCreatureType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EnumCreatureType monster
public static final EnumCreatureType creature
public static final EnumCreatureType ambient
public static final EnumCreatureType waterCreature
public static EnumCreatureType[] values()
for (EnumCreatureType c : EnumCreatureType.values()) System.out.println(c);
public static EnumCreatureType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant
with the specified nameNullPointerException
- if the argument is nullpublic Class getCreatureClass()
public int getMaxNumberOfCreature()
public Material getCreatureMaterial()
public boolean getPeacefulCreature()
public boolean getAnimal()