@Environment(value=CLIENT) static enum GameModeSelectionScreen.GameMode extends Enum<GameModeSelectionScreen.GameMode>
Enum Constant and Description |
---|
ADVENTURE |
CREATIVE |
SPECTATOR |
SURVIVAL |
Modifier and Type | Field and Description |
---|---|
(package private) String |
command |
(package private) ItemStack |
icon |
(package private) Text |
text |
protected static GameModeSelectionScreen.GameMode[] |
VALUES |
Modifier and Type | Method and Description |
---|---|
private String |
getCommand() |
private Text |
getText() |
private Optional<GameModeSelectionScreen.GameMode> |
next() |
private static Optional<GameModeSelectionScreen.GameMode> |
of(GameMode gameMode) |
private void |
renderIcon(ItemRenderer itemRenderer,
int x,
int y) |
static GameModeSelectionScreen.GameMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static GameModeSelectionScreen.GameMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final GameModeSelectionScreen.GameMode CREATIVE
public static final GameModeSelectionScreen.GameMode SURVIVAL
public static final GameModeSelectionScreen.GameMode ADVENTURE
public static final GameModeSelectionScreen.GameMode SPECTATOR
protected static final GameModeSelectionScreen.GameMode[] VALUES
final Text text
final String command
final ItemStack icon
public static GameModeSelectionScreen.GameMode[] values()
for (GameModeSelectionScreen.GameMode c : GameModeSelectionScreen.GameMode.values()) System.out.println(c);
public static GameModeSelectionScreen.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 nameNullPointerException
- if the argument is nullprivate void renderIcon(ItemRenderer itemRenderer, int x, int y)
private Text getText()
private String getCommand()
private Optional<GameModeSelectionScreen.GameMode> next()
private static Optional<GameModeSelectionScreen.GameMode> of(GameMode gameMode)