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
-
Field Summary
Modifier and TypeFieldDescription(package private) final String
private static final int
protected static final int
(package private) final Component
(package private) final ItemStack
protected static final GameModeSwitcherScreen.GameModeIcon[]
-
Constructor Summary
ModifierConstructorDescriptionprivate
GameModeIcon
(Component p_97594_, String p_97595_, ItemStack p_97596_) -
Method Summary
Modifier and TypeMethodDescription(package private) void
drawIcon
(GuiGraphics p_282609_, int p_283301_, int p_281692_) (package private) String
(package private) static GameModeSwitcherScreen.GameModeIcon
getFromGameType
(GameType p_283307_) (package private) Component
getName()
(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
protected static final int ICON_TOP_LEFT- See Also:
-
name
-
command
-
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
-
getName
Component getName() -
getCommand
String getCommand() -
getNext
GameModeSwitcherScreen.GameModeIcon getNext() -
getFromGameType
-