public enum EntityClassification extends java.lang.Enum<EntityClassification> implements IExtensibleEnum
Enum Constant and Description |
---|
AMBIENT |
CREATURE |
MISC |
MONSTER |
WATER_CREATURE |
Modifier and Type | Field and Description |
---|---|
private boolean |
isAnimal |
private boolean |
isPeacefulCreature |
private int |
maxNumberOfCreature |
private java.lang.String |
name |
private static java.util.Map<java.lang.String,EntityClassification> |
VALUES_MAP |
Modifier and Type | Method and Description |
---|---|
static EntityClassification |
create(java.lang.String name,
java.lang.String id,
int maxNumberOfCreatureIn,
boolean isPeacefulCreatureIn,
boolean isAnimalIn) |
boolean |
getAnimal() |
int |
getMaxNumberOfCreature() |
java.lang.String |
getName() |
boolean |
getPeacefulCreature() |
static EntityClassification |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static EntityClassification[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
init
public static final EntityClassification MONSTER
public static final EntityClassification CREATURE
public static final EntityClassification AMBIENT
public static final EntityClassification WATER_CREATURE
public static final EntityClassification MISC
private static final java.util.Map<java.lang.String,EntityClassification> VALUES_MAP
private final int maxNumberOfCreature
private final boolean isPeacefulCreature
private final boolean isAnimal
private final java.lang.String name
public static EntityClassification[] values()
for (EntityClassification c : EntityClassification.values()) System.out.println(c);
public static EntityClassification 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.String getName()
public int getMaxNumberOfCreature()
public boolean getPeacefulCreature()
public boolean getAnimal()
public static EntityClassification create(java.lang.String name, java.lang.String id, int maxNumberOfCreatureIn, boolean isPeacefulCreatureIn, boolean isAnimalIn)