Enum Class GameModeSwitcherScreen.GameModeIcon
java.lang.Object
java.lang.Enum<GameModeSwitcherScreen.GameModeIcon>
net.minecraft.client.gui.screens.debug.GameModeSwitcherScreen.GameModeIcon
- All Implemented Interfaces:
Serializable, Comparable<GameModeSwitcherScreen.GameModeIcon>, Constable
- Enclosing class:
GameModeSwitcherScreen
private static enum GameModeSwitcherScreen.GameModeIcon
extends Enum<GameModeSwitcherScreen.GameModeIcon>
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum Constants -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final intprivate static final intprivate final GameTypeprivate final Componentprivate final ItemStackprivate static final GameModeSwitcherScreen.GameModeIcon[] -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateGameModeIcon(Component name, GameType mode, ItemStack renderStack) -
Method Summary
Modifier and TypeMethodDescriptionprivate voiddrawIcon(GuiGraphics graphics, int x, int y) private static GameModeSwitcherScreen.GameModeIcongetFromGameType(GameType gameType) getNext()Returns the enum constant of this class with the specified name.static GameModeSwitcherScreen.GameModeIcon[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CREATIVE
-
SURVIVAL
-
ADVENTURE
-
SPECTATOR
-
-
Field Details
-
VALUES
-
ICON_AREA
private static final int ICON_AREA- See Also:
-
ICON_TOP_LEFT
private static final int ICON_TOP_LEFT- See Also:
-
name
-
mode
-
renderStack
-
-
Constructor Details
-
GameModeIcon
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
drawIcon
-
getNext
-
getFromGameType
-