public enum EnumCreatureType extends java.lang.Enum<EnumCreatureType>
Enum Constant and Description |
---|
AMBIENT |
CREATURE |
MONSTER |
WATER_CREATURE |
Modifier and Type | Field and Description |
---|---|
private java.lang.Class<? extends IAnimals> |
creatureClass |
private Material |
creatureMaterial |
private boolean |
isAnimal |
private boolean |
isPeacefulCreature |
private int |
maxNumberOfCreature |
Modifier and Type | Method and Description |
---|---|
boolean |
getAnimal() |
java.lang.Class<? extends IAnimals> |
getCreatureClass() |
int |
getMaxNumberOfCreature() |
boolean |
getPeacefulCreature() |
static EnumCreatureType |
valueOf(java.lang.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 WATER_CREATURE
private final java.lang.Class<? extends IAnimals> creatureClass
private final int maxNumberOfCreature
private final Material creatureMaterial
private final boolean isPeacefulCreature
private final boolean isAnimal
public static EnumCreatureType[] values()
for (EnumCreatureType c : EnumCreatureType.values()) System.out.println(c);
public static EnumCreatureType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.Class<? extends IAnimals> getCreatureClass()
public int getMaxNumberOfCreature()
public boolean getPeacefulCreature()
public boolean getAnimal()