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) String
private static int
protected static int
(package private) Component
(package private) ItemStack
protected static GameModeSwitcherScreen.GameModeIcon[]
-
Constructor Summary
ModifierConstructorDescriptionprivate
GameModeIcon(Component p_97594_, String p_97595_, ItemStack p_97596_)
-
Method Summary
Modifier and TypeMethodDescription(package private) void
drawIcon(ItemRenderer p_97608_, int p_97609_, int p_97610_)
(package private) String
(package private) static Optional<GameModeSwitcherScreen.GameModeIcon>
getFromGameType(GameType p_97613_)
(package private) Component
getName()
(package private) Optional<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:
- Constant Field Values
-
ICON_TOP_LEFT
protected static final int ICON_TOP_LEFT- See Also:
- Constant Field Values
-
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
Optional<GameModeSwitcherScreen.GameModeIcon> getNext() -
getFromGameType
-