public static enum NPC_.Morality extends java.lang.Enum<NPC_.Morality>
Enum Constant and Description |
---|
AnyCrime |
NoCrime |
PropertyCrimeOnly |
ViolenceAgainstEnemies |
Modifier and Type | Method and Description |
---|---|
static NPC_.Morality |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static NPC_.Morality[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NPC_.Morality AnyCrime
public static final NPC_.Morality ViolenceAgainstEnemies
public static final NPC_.Morality PropertyCrimeOnly
public static final NPC_.Morality NoCrime
public static NPC_.Morality[] values()
for (NPC_.Morality c : NPC_.Morality.values()) System.out.println(c);
public static NPC_.Morality 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 null