public static enum EnumWrappers.NativeGameMode extends Enum<EnumWrappers.NativeGameMode>
Not to be confused with GameMode in Bukkit.
| Enum Constant and Description |
|---|
ADVENTURE |
CREATIVE |
NONE
Deprecated.
Replaced by NOT_SET
|
NOT_SET |
SPECTATOR |
SURVIVAL |
| Modifier and Type | Method and Description |
|---|---|
static EnumWrappers.NativeGameMode |
fromBukkit(org.bukkit.GameMode mode)
Obtains the given GameMode's NativeGameMode equivalent.
|
org.bukkit.GameMode |
toBukkit()
Gets this NativeGameMode's Bukkit equivalent.
|
static EnumWrappers.NativeGameMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EnumWrappers.NativeGameMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EnumWrappers.NativeGameMode NOT_SET
public static final EnumWrappers.NativeGameMode SURVIVAL
public static final EnumWrappers.NativeGameMode CREATIVE
public static final EnumWrappers.NativeGameMode ADVENTURE
public static final EnumWrappers.NativeGameMode SPECTATOR
public static final EnumWrappers.NativeGameMode NONE
public static EnumWrappers.NativeGameMode[] values()
for (EnumWrappers.NativeGameMode c : EnumWrappers.NativeGameMode.values()) System.out.println(c);
public static EnumWrappers.NativeGameMode valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic org.bukkit.GameMode toBukkit()
Note: There is not a Bukkit equivalent for NOT_SET or NONE
public static EnumWrappers.NativeGameMode fromBukkit(org.bukkit.GameMode mode)
mode - Bukkit GameModeCopyright © 2012–2017 Comphenix and dmulloy2. Licensed under the GNU GPL v2.