public enum EnumEncounterMode extends java.lang.Enum<EnumEncounterMode>
Enum Constant and Description |
---|
Once |
OncePerDay |
OncePerMCDay |
OncePerPlayer |
Unlimited |
Modifier and Type | Method and Description |
---|---|
static EnumEncounterMode |
getFromIndex(int i)
Gets an encounter mode from its enum index.
|
java.lang.String |
getLocalizedName()
Gets the localized name of the encounter mode.
|
static EnumEncounterMode |
getNextMode(EnumEncounterMode mode)
Gets the next encounter mode in order from a current one.
|
static boolean |
hasEncounterMode(java.lang.String name)
Checks if there is an encounter mode with a certain name.
|
boolean |
isTimedAccess() |
static EnumEncounterMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static EnumEncounterMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EnumEncounterMode Once
public static final EnumEncounterMode OncePerPlayer
public static final EnumEncounterMode OncePerMCDay
public static final EnumEncounterMode OncePerDay
public static final EnumEncounterMode Unlimited
public static EnumEncounterMode[] values()
for (EnumEncounterMode c : EnumEncounterMode.values()) System.out.println(c);
public static EnumEncounterMode 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 boolean isTimedAccess()
public static EnumEncounterMode getFromIndex(int i)
i
- The index of the encounter mode.public static EnumEncounterMode getNextMode(EnumEncounterMode mode)
mode
- The current encounter mode.public static boolean hasEncounterMode(java.lang.String name)
name
- The name of the encounter mode to verify.public java.lang.String getLocalizedName()