|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<GameMode> org.bukkit.GameMode
public enum GameMode
Represents the various type of game modes that HumanEntity
s may have
Enum Constant Summary | |
---|---|
ADVENTURE
Adventure mode cannot break blocks, use chat, use buckets, etc. |
|
CREATIVE
Creative mode may fly, build instantly, become invulnerable and create free items. |
|
SURVIVAL
Survival mode is the "normal" gameplay type, with no special features. |
Method Summary | |
---|---|
static GameMode |
getByValue(int value)
Deprecated. Magic value |
int |
getValue()
Deprecated. Magic value |
static GameMode |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static GameMode[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, 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 GameMode CREATIVE
public static final GameMode SURVIVAL
public static final GameMode ADVENTURE
Method Detail |
---|
public static GameMode[] values()
for (GameMode c : GameMode.values()) System.out.println(c);
public static GameMode valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is null@Deprecated public int getValue()
@Deprecated public static GameMode getByValue(int value)
value
- Value to check
GameMode
with the given value, or null if it doesn't exist
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |