public static enum WorldSettings.GameType extends java.lang.Enum<WorldSettings.GameType>
Enum Constant and Description |
---|
ADVENTURE |
CREATIVE |
NOT_SET |
SURVIVAL |
Modifier and Type | Method and Description |
---|---|
void |
configurePlayerCapabilities(PlayerCapabilities p_77147_1_) |
static WorldSettings.GameType |
getByID(int p_77146_0_) |
static WorldSettings.GameType |
getByName(java.lang.String p_77142_0_) |
int |
getID() |
java.lang.String |
getName() |
boolean |
isAdventure() |
boolean |
isCreative() |
boolean |
isSurvivalOrAdventure() |
static WorldSettings.GameType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static WorldSettings.GameType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final WorldSettings.GameType NOT_SET
public static final WorldSettings.GameType SURVIVAL
public static final WorldSettings.GameType CREATIVE
public static final WorldSettings.GameType ADVENTURE
public static WorldSettings.GameType[] values()
for (WorldSettings.GameType c : WorldSettings.GameType.values()) System.out.println(c);
public static WorldSettings.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 namejava.lang.NullPointerException
- if the argument is nullpublic int getID()
public java.lang.String getName()
public void configurePlayerCapabilities(PlayerCapabilities p_77147_1_)
public boolean isAdventure()
public boolean isCreative()
public boolean isSurvivalOrAdventure()
public static WorldSettings.GameType getByID(int p_77146_0_)
public static WorldSettings.GameType getByName(java.lang.String p_77142_0_)