public enum EntityCategory extends Enum<EntityCategory>
Enum Constant and Description |
---|
AMBIENT |
CREATURE |
MISC |
MONSTER |
WATER_CREATURE |
Modifier and Type | Field and Description |
---|---|
private boolean |
animal |
private static Map<String,EntityCategory> |
BY_NAME |
private String |
name |
private boolean |
peaceful |
private int |
spawnCap |
Modifier and Type | Method and Description |
---|---|
String |
getName() |
int |
getSpawnCap() |
boolean |
isAnimal() |
boolean |
isPeaceful() |
static EntityCategory |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EntityCategory[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EntityCategory MONSTER
public static final EntityCategory CREATURE
public static final EntityCategory AMBIENT
public static final EntityCategory WATER_CREATURE
public static final EntityCategory MISC
private static final Map<String,EntityCategory> BY_NAME
private final int spawnCap
private final boolean peaceful
private final boolean animal
private final String name
public static EntityCategory[] values()
for (EntityCategory c : EntityCategory.values()) System.out.println(c);
public static EntityCategory 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 String getName()
public int getSpawnCap()
public boolean isPeaceful()
public boolean isAnimal()