public enum EnumTrainerAI extends java.lang.Enum<EnumTrainerAI>
Enum Constant and Description |
---|
StandStill |
StillAndEngage |
Wander |
WanderAndEngage |
Modifier and Type | Method and Description |
---|---|
boolean |
doesEngage()
Checks if the movement AI mode causes the Trainer to engage players in battle on sight.
|
static EnumTrainerAI |
getFromOrdinal(int ordinal)
Gets a movement AI mode from its index.
|
java.lang.String |
getLocalizedName()
Gets the localized name of the AI mode.
|
static EnumTrainerAI |
getNextMode(EnumTrainerAI mode)
Gets the next movement AI mode in order from a current one.
|
static boolean |
hasTrainerAI(java.lang.String name)
Checks if there is a movement AI mode with a certain name.
|
static EnumTrainerAI |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static EnumTrainerAI[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EnumTrainerAI StandStill
public static final EnumTrainerAI StillAndEngage
public static final EnumTrainerAI Wander
public static final EnumTrainerAI WanderAndEngage
public static EnumTrainerAI[] values()
for (EnumTrainerAI c : EnumTrainerAI.values()) System.out.println(c);
public static EnumTrainerAI 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 static EnumTrainerAI getFromOrdinal(int ordinal)
ordinal
- The index of the movement AI mode.public static EnumTrainerAI getNextMode(EnumTrainerAI mode)
mode
- The current movement AI mode.public static boolean hasTrainerAI(java.lang.String name)
name
- The name of the movement AI mode.public boolean doesEngage()
public java.lang.String getLocalizedName()