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
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final int
private static final int
(package private) final GameType
(package private) final Component
private final ItemStack
(package private) static final GameModeSwitcherScreen.GameModeIcon[]
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
GameModeIcon
(Component pName, GameType pMode, ItemStack pRenderStack) -
Method Summary
Modifier and TypeMethodDescription(package private) void
drawIcon
(GuiGraphics pGuiGraphics, int pX, int pY) (package private) static GameModeSwitcherScreen.GameModeIcon
getFromGameType
(GameType pGameType) (package private) GameModeSwitcherScreen.GameModeIcon
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
GameModeSwitcherScreen.GameModeIcon getNext() -
getFromGameType
-