|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<GameType>
net.morbz.minecraft.level.GameType
public enum GameType
Defines a game type for the level.
Enum Constant Summary | |
---|---|
ADVENTURE
Adventure mode |
|
CREATIVE
Creative mode |
|
SPECTATOR
Spectator mode |
|
SURVIVAL
Survival mode |
Method Summary | |
---|---|
int |
getValue()
Returns the value. |
static GameType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static GameType[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final GameType SURVIVAL
public static final GameType CREATIVE
public static final GameType ADVENTURE
public static final GameType SPECTATOR
Method Detail |
---|
public static GameType[] values()
for (GameType c : GameType.values()) System.out.println(c);
public static GameType 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 name
java.lang.NullPointerException
- if the argument is nullpublic int getValue()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |