Enum Class GameModeSelectionScreen.GameMode

java.lang.Object
java.lang.Enum<GameModeSelectionScreen.GameMode>
net.minecraft.client.gui.screen.GameModeSelectionScreen.GameMode
All Implemented Interfaces:
Serializable, Comparable<GameModeSelectionScreen.GameMode>, Constable
Enclosing class:
GameModeSelectionScreen

@Environment(CLIENT) private static enum GameModeSelectionScreen.GameMode extends Enum<GameModeSelectionScreen.GameMode>
Mappings:
Namespace Name
official ebj$a
intermediary net/minecraft/class_5289$class_5290
named net/minecraft/client/gui/screen/GameModeSelectionScreen$GameMode
  • Enum Constant Details

    • CREATIVE

      public static final GameModeSelectionScreen.GameMode CREATIVE
      Mappings:
      Namespace Name Mixin selector
      official a Lebj$a;a:Lebj$a;
      intermediary field_24576 Lnet/minecraft/class_5289$class_5290;field_24576:Lnet/minecraft/class_5289$class_5290;
      named CREATIVE Lnet/minecraft/client/gui/screen/GameModeSelectionScreen$GameMode;CREATIVE:Lnet/minecraft/client/gui/screen/GameModeSelectionScreen$GameMode;
    • SURVIVAL

      public static final GameModeSelectionScreen.GameMode SURVIVAL
      Mappings:
      Namespace Name Mixin selector
      official b Lebj$a;b:Lebj$a;
      intermediary field_24577 Lnet/minecraft/class_5289$class_5290;field_24577:Lnet/minecraft/class_5289$class_5290;
      named SURVIVAL Lnet/minecraft/client/gui/screen/GameModeSelectionScreen$GameMode;SURVIVAL:Lnet/minecraft/client/gui/screen/GameModeSelectionScreen$GameMode;
    • ADVENTURE

      public static final GameModeSelectionScreen.GameMode ADVENTURE
      Mappings:
      Namespace Name Mixin selector
      official c Lebj$a;c:Lebj$a;
      intermediary field_24578 Lnet/minecraft/class_5289$class_5290;field_24578:Lnet/minecraft/class_5289$class_5290;
      named ADVENTURE Lnet/minecraft/client/gui/screen/GameModeSelectionScreen$GameMode;ADVENTURE:Lnet/minecraft/client/gui/screen/GameModeSelectionScreen$GameMode;
    • SPECTATOR

      public static final GameModeSelectionScreen.GameMode SPECTATOR
      Mappings:
      Namespace Name Mixin selector
      official d Lebj$a;d:Lebj$a;
      intermediary field_24579 Lnet/minecraft/class_5289$class_5290;field_24579:Lnet/minecraft/class_5289$class_5290;
      named SPECTATOR Lnet/minecraft/client/gui/screen/GameModeSelectionScreen$GameMode;SPECTATOR:Lnet/minecraft/client/gui/screen/GameModeSelectionScreen$GameMode;
  • Field Details

    • VALUES

      protected static final GameModeSelectionScreen.GameMode[] VALUES
      Mappings:
      Namespace Name Mixin selector
      official e Lebj$a;e:[Lebj$a;
      intermediary field_24580 Lnet/minecraft/class_5289$class_5290;field_24580:[Lnet/minecraft/class_5289$class_5290;
      named VALUES Lnet/minecraft/client/gui/screen/GameModeSelectionScreen$GameMode;VALUES:[Lnet/minecraft/client/gui/screen/GameModeSelectionScreen$GameMode;
    • field_32317

      private static final int field_32317
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official j Lebj$a;j:I
      intermediary field_32317 Lnet/minecraft/class_5289$class_5290;field_32317:I
      named field_32317 Lnet/minecraft/client/gui/screen/GameModeSelectionScreen$GameMode;field_32317:I
    • field_32316

      protected static final int field_32316
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official f Lebj$a;f:I
      intermediary field_32316 Lnet/minecraft/class_5289$class_5290;field_32316:I
      named field_32316 Lnet/minecraft/client/gui/screen/GameModeSelectionScreen$GameMode;field_32316:I
    • text

      final Text text
      Mappings:
      Namespace Name Mixin selector
      official g Lebj$a;g:Los;
      intermediary field_24581 Lnet/minecraft/class_5289$class_5290;field_24581:Lnet/minecraft/class_2561;
      named text Lnet/minecraft/client/gui/screen/GameModeSelectionScreen$GameMode;text:Lnet/minecraft/text/Text;
    • command

      final String command
      Mappings:
      Namespace Name Mixin selector
      official h Lebj$a;h:Ljava/lang/String;
      intermediary field_24582 Lnet/minecraft/class_5289$class_5290;field_24582:Ljava/lang/String;
      named command Lnet/minecraft/client/gui/screen/GameModeSelectionScreen$GameMode;command:Ljava/lang/String;
    • icon

      final ItemStack icon
      Mappings:
      Namespace Name Mixin selector
      official i Lebj$a;i:Lbqp;
      intermediary field_24583 Lnet/minecraft/class_5289$class_5290;field_24583:Lnet/minecraft/class_1799;
      named icon Lnet/minecraft/client/gui/screen/GameModeSelectionScreen$GameMode;icon:Lnet/minecraft/item/ItemStack;
  • Constructor Details

    • GameMode

      private GameMode(Text text, String command, ItemStack icon)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lebj$a;<init>(Ljava/lang/String;ILos;Ljava/lang/String;Lbqp;)V
      intermediary <init> Lnet/minecraft/class_5289$class_5290;<init>(Ljava/lang/String;ILnet/minecraft/class_2561;Ljava/lang/String;Lnet/minecraft/class_1799;)V
      named <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

      public static GameModeSelectionScreen.GameMode[] 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

      public static GameModeSelectionScreen.GameMode valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • renderIcon

      void renderIcon(ItemRenderer itemRenderer, int x, int y)
      Mappings:
      Namespace Name Mixin selector
      official a Lebj$a;a(Lesu;II)V
      intermediary method_28074 Lnet/minecraft/class_5289$class_5290;method_28074(Lnet/minecraft/class_918;II)V
      named renderIcon Lnet/minecraft/client/gui/screen/GameModeSelectionScreen$GameMode;renderIcon(Lnet/minecraft/client/render/item/ItemRenderer;II)V
    • getText

      Text getText()
      Mappings:
      Namespace Name Mixin selector
      official a Lebj$a;a()Los;
      intermediary method_28070 Lnet/minecraft/class_5289$class_5290;method_28070()Lnet/minecraft/class_2561;
      named getText Lnet/minecraft/client/gui/screen/GameModeSelectionScreen$GameMode;getText()Lnet/minecraft/text/Text;
    • getCommand

      String getCommand()
      Mappings:
      Namespace Name Mixin selector
      official b Lebj$a;b()Ljava/lang/String;
      intermediary method_28075 Lnet/minecraft/class_5289$class_5290;method_28075()Ljava/lang/String;
      named getCommand Lnet/minecraft/client/gui/screen/GameModeSelectionScreen$GameMode;getCommand()Ljava/lang/String;
    • next

      Mappings:
      Namespace Name Mixin selector
      official c Lebj$a;c()Ljava/util/Optional;
      intermediary method_28078 Lnet/minecraft/class_5289$class_5290;method_28078()Ljava/util/Optional;
      named next Lnet/minecraft/client/gui/screen/GameModeSelectionScreen$GameMode;next()Ljava/util/Optional;
    • of

      Mappings:
      Namespace Name Mixin selector
      official a Lebj$a;a(Lbwm;)Ljava/util/Optional;
      intermediary method_28076 Lnet/minecraft/class_5289$class_5290;method_28076(Lnet/minecraft/class_1934;)Ljava/util/Optional;
      named of Lnet/minecraft/client/gui/screen/GameModeSelectionScreen$GameMode;of(Lnet/minecraft/world/GameMode;)Ljava/util/Optional;