Package net.minecraft.client.gui.screen
Enum Class GamemodeSelectionScreen.Mode
java.lang.Object
java.lang.Enum<GamemodeSelectionScreen.Mode>
net.minecraft.client.gui.screen.GamemodeSelectionScreen.Mode
- All Implemented Interfaces:
Serializable
,Comparable<GamemodeSelectionScreen.Mode>
,Constable
- Enclosing class:
- GamemodeSelectionScreen
-
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
(package private) final ITextComponent
(package private) final ItemStack
protected static final GamemodeSelectionScreen.Mode[]
-
Constructor Summary
ModifierConstructorDescriptionprivate
Mode
(ITextComponent p_i232285_3_, String p_i232285_4_, ItemStack p_i232285_5_) -
Method Summary
Modifier and TypeMethodDescriptionprivate void
drawIcon
(ItemRenderer p_238729_1_, int p_238729_2_, int p_238729_3_) private String
private static Optional<GamemodeSelectionScreen.Mode>
getFromGameType
(GameType p_238731_0_) private ITextComponent
getName()
private Optional<GamemodeSelectionScreen.Mode>
getNext()
static GamemodeSelectionScreen.Mode
Returns the enum constant of this class with the specified name.static GamemodeSelectionScreen.Mode[]
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
-
name
-
command
-
renderStack
-
-
Constructor Details
-
Mode
-
-
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
-
getCommand
-
getNext
-
getFromGameType
-