Package net.minecraft.client.gui.screen
Enum GameModeSelectionScreen.GameMode
java.lang.Object
java.lang.Enum<GameModeSelectionScreen.GameMode>
net.minecraft.client.gui.screen.GameModeSelectionScreen.GameMode
- All Implemented Interfaces:
Serializable,Comparable<GameModeSelectionScreen.GameMode>,java.lang.constant.Constable
- Enclosing class:
- GameModeSelectionScreen
@Environment(CLIENT) static enum GameModeSelectionScreen.GameMode extends Enum<GameModeSelectionScreen.GameMode>
- Mappings:
Namespace Name official dxs$aintermediary net/minecraft/class_5289$class_5290named net/minecraft/client/gui/screen/GameModeSelectionScreen$GameMode
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description private StringgetCommand()private TextgetText()private Optional<GameModeSelectionScreen.GameMode>next()private static Optional<GameModeSelectionScreen.GameMode>of(GameMode gameMode)private voidrenderIcon(ItemRenderer itemRenderer, int x, int y)static GameModeSelectionScreen.GameModevalueOf(String name)Returns the enum constant of this type with the specified name.static GameModeSelectionScreen.GameMode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
CREATIVE
- Mappings:
Namespace Name Mixin selector official aLdxs$a;a:Ldxs$a;intermediary field_24576Lnet/minecraft/class_5289$class_5290;field_24576:Lnet/minecraft/class_5289$class_5290;named CREATIVELnet/minecraft/client/gui/screen/GameModeSelectionScreen$GameMode;CREATIVE:Lnet/minecraft/client/gui/screen/GameModeSelectionScreen$GameMode;
-
SURVIVAL
- Mappings:
Namespace Name Mixin selector official bLdxs$a;b:Ldxs$a;intermediary field_24577Lnet/minecraft/class_5289$class_5290;field_24577:Lnet/minecraft/class_5289$class_5290;named SURVIVALLnet/minecraft/client/gui/screen/GameModeSelectionScreen$GameMode;SURVIVAL:Lnet/minecraft/client/gui/screen/GameModeSelectionScreen$GameMode;
-
ADVENTURE
- Mappings:
Namespace Name Mixin selector official cLdxs$a;c:Ldxs$a;intermediary field_24578Lnet/minecraft/class_5289$class_5290;field_24578:Lnet/minecraft/class_5289$class_5290;named ADVENTURELnet/minecraft/client/gui/screen/GameModeSelectionScreen$GameMode;ADVENTURE:Lnet/minecraft/client/gui/screen/GameModeSelectionScreen$GameMode;
-
SPECTATOR
- Mappings:
Namespace Name Mixin selector official dLdxs$a;d:Ldxs$a;intermediary field_24579Lnet/minecraft/class_5289$class_5290;field_24579:Lnet/minecraft/class_5289$class_5290;named SPECTATORLnet/minecraft/client/gui/screen/GameModeSelectionScreen$GameMode;SPECTATOR:Lnet/minecraft/client/gui/screen/GameModeSelectionScreen$GameMode;
-
-
Field Details
-
VALUES
- Mappings:
Namespace Name Mixin selector official eLdxs$a;e:[Ldxs$a;intermediary field_24580Lnet/minecraft/class_5289$class_5290;field_24580:[Lnet/minecraft/class_5289$class_5290;named VALUESLnet/minecraft/client/gui/screen/GameModeSelectionScreen$GameMode;VALUES:[Lnet/minecraft/client/gui/screen/GameModeSelectionScreen$GameMode;
-
text
- Mappings:
Namespace Name Mixin selector official fLdxs$a;f:Loj;intermediary field_24581Lnet/minecraft/class_5289$class_5290;field_24581:Lnet/minecraft/class_2561;named textLnet/minecraft/client/gui/screen/GameModeSelectionScreen$GameMode;text:Lnet/minecraft/text/Text;
-
command
- Mappings:
Namespace Name Mixin selector official gLdxs$a;g:Ljava/lang/String;intermediary field_24582Lnet/minecraft/class_5289$class_5290;field_24582:Ljava/lang/String;named commandLnet/minecraft/client/gui/screen/GameModeSelectionScreen$GameMode;command:Ljava/lang/String;
-
icon
- Mappings:
Namespace Name Mixin selector official hLdxs$a;h:Lboq;intermediary field_24583Lnet/minecraft/class_5289$class_5290;field_24583:Lnet/minecraft/class_1799;named iconLnet/minecraft/client/gui/screen/GameModeSelectionScreen$GameMode;icon:Lnet/minecraft/item/ItemStack;
-
-
Constructor Details
-
GameMode
- Mappings:
Namespace Name Mixin selector official <init>Ldxs$a;<init>(Ljava/lang/String;ILoj;Ljava/lang/String;Lboq;)Vintermediary <init>Lnet/minecraft/class_5289$class_5290;<init>(Ljava/lang/String;ILnet/minecraft/class_2561;Ljava/lang/String;Lnet/minecraft/class_1799;)Vnamed <init>Lnet/minecraft/client/gui/screen/GameModeSelectionScreen$GameMode;<init>(Ljava/lang/String;ILnet/minecraft/text/Text;Ljava/lang/String;Lnet/minecraft/item/ItemStack;)V
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException- if the argument is null
-
renderIcon
- Mappings:
Namespace Name Mixin selector official aLdxs$a;a(Leoz;II)Vintermediary method_28074Lnet/minecraft/class_5289$class_5290;method_28074(Lnet/minecraft/class_918;II)Vnamed renderIconLnet/minecraft/client/gui/screen/GameModeSelectionScreen$GameMode;renderIcon(Lnet/minecraft/client/render/item/ItemRenderer;II)V
-
getText
- Mappings:
Namespace Name Mixin selector official aLdxs$a;a()Loj;intermediary method_28070Lnet/minecraft/class_5289$class_5290;method_28070()Lnet/minecraft/class_2561;named getTextLnet/minecraft/client/gui/screen/GameModeSelectionScreen$GameMode;getText()Lnet/minecraft/text/Text;
-
getCommand
- Mappings:
Namespace Name Mixin selector official bLdxs$a;b()Ljava/lang/String;intermediary method_28075Lnet/minecraft/class_5289$class_5290;method_28075()Ljava/lang/String;named getCommandLnet/minecraft/client/gui/screen/GameModeSelectionScreen$GameMode;getCommand()Ljava/lang/String;
-
next
- Mappings:
Namespace Name Mixin selector official cLdxs$a;c()Ljava/util/Optional;intermediary method_28078Lnet/minecraft/class_5289$class_5290;method_28078()Ljava/util/Optional;named nextLnet/minecraft/client/gui/screen/GameModeSelectionScreen$GameMode;next()Ljava/util/Optional;
-
of
- Mappings:
Namespace Name Mixin selector official bLdxs$a;b(Lbun;)Ljava/util/Optional;intermediary method_28076Lnet/minecraft/class_5289$class_5290;method_28076(Lnet/minecraft/class_1934;)Ljava/util/Optional;named ofLnet/minecraft/client/gui/screen/GameModeSelectionScreen$GameMode;of(Lnet/minecraft/world/GameMode;)Ljava/util/Optional;
-