Package net.minecraft.client.gui.screen
Enum CreateWorldScreen.GameMode
- java.lang.Object
-
- java.lang.Enum<CreateWorldScreen.GameMode>
-
- net.minecraft.client.gui.screen.CreateWorldScreen.GameMode
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<CreateWorldScreen.GameMode>
- Enclosing class:
- CreateWorldScreen
static enum CreateWorldScreen.GameMode extends java.lang.Enum<CreateWorldScreen.GameMode>
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CreateWorldScreen.GameMode
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static CreateWorldScreen.GameMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SURVIVAL
public static final CreateWorldScreen.GameMode SURVIVAL
-
HARDCORE
public static final CreateWorldScreen.GameMode HARDCORE
-
CREATIVE
public static final CreateWorldScreen.GameMode CREATIVE
-
DEBUG
public static final CreateWorldScreen.GameMode DEBUG
-
-
Field Detail
-
name
private final java.lang.String name
-
gameType
private final GameType gameType
-
-
Constructor Detail
-
GameMode
private GameMode(java.lang.String p_i225940_3_, GameType p_i225940_4_)
-
-
Method Detail
-
values
public static CreateWorldScreen.GameMode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (CreateWorldScreen.GameMode c : CreateWorldScreen.GameMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CreateWorldScreen.GameMode valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-