@Environment(value=CLIENT) static enum CreateWorldScreen.Mode extends Enum<CreateWorldScreen.Mode>
Modifier and Type | Field and Description |
---|---|
private GameMode |
defaultGameMode |
private String |
translationSuffix |
Modifier and Type | Method and Description |
---|---|
static CreateWorldScreen.Mode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CreateWorldScreen.Mode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CreateWorldScreen.Mode SURVIVAL
public static final CreateWorldScreen.Mode HARDCORE
public static final CreateWorldScreen.Mode CREATIVE
public static final CreateWorldScreen.Mode DEBUG
private final String translationSuffix
private final GameMode defaultGameMode
public static CreateWorldScreen.Mode[] values()
for (CreateWorldScreen.Mode c : CreateWorldScreen.Mode.values()) System.out.println(c);
public static CreateWorldScreen.Mode 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 null