Class GameModeSwitcherScreen

All Implemented Interfaces:
Drawable, Element, Navigable, ParentElement

@Environment(CLIENT) public class GameModeSwitcherScreen extends Screen
Mappings:
Namespace Name
named net/minecraft/client/gui/screen/GameModeSwitcherScreen
intermediary net/minecraft/class_5289
official gac
  • Field Details Link icon

    • SLOT_TEXTURE Link icon

      static final Identifier SLOT_TEXTURE
      Mappings:
      Namespace Name Mixin selector
      named SLOT_TEXTURE Lnet/minecraft/client/gui/screen/GameModeSwitcherScreen;SLOT_TEXTURE:Lnet/minecraft/util/Identifier;
      intermediary field_45432 Lnet/minecraft/class_5289;field_45432:Lnet/minecraft/class_2960;
      official a Lgac;a:Lalr;
    • SELECTION_TEXTURE Link icon

      static final Identifier SELECTION_TEXTURE
      Mappings:
      Namespace Name Mixin selector
      named SELECTION_TEXTURE Lnet/minecraft/client/gui/screen/GameModeSwitcherScreen;SELECTION_TEXTURE:Lnet/minecraft/util/Identifier;
      intermediary field_45433 Lnet/minecraft/class_5289;field_45433:Lnet/minecraft/class_2960;
      official b Lgac;b:Lalr;
    • TEXTURE Link icon

      private static final Identifier TEXTURE
      Mappings:
      Namespace Name Mixin selector
      named TEXTURE Lnet/minecraft/client/gui/screen/GameModeSwitcherScreen;TEXTURE:Lnet/minecraft/util/Identifier;
      intermediary field_24566 Lnet/minecraft/class_5289;field_24566:Lnet/minecraft/class_2960;
      official c Lgac;c:Lalr;
    • TEXTURE_WIDTH Link icon

      private static final int TEXTURE_WIDTH
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named TEXTURE_WIDTH Lnet/minecraft/client/gui/screen/GameModeSwitcherScreen;TEXTURE_WIDTH:I
      intermediary field_32310 Lnet/minecraft/class_5289;field_32310:I
      official d Lgac;d:I
    • TEXTURE_HEIGHT Link icon

      private static final int TEXTURE_HEIGHT
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named TEXTURE_HEIGHT Lnet/minecraft/client/gui/screen/GameModeSwitcherScreen;TEXTURE_HEIGHT:I
      intermediary field_32311 Lnet/minecraft/class_5289;field_32311:I
      official s Lgac;s:I
    • BUTTON_SIZE Link icon

      private static final int BUTTON_SIZE
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named BUTTON_SIZE Lnet/minecraft/client/gui/screen/GameModeSwitcherScreen;BUTTON_SIZE:I
      intermediary field_32312 Lnet/minecraft/class_5289;field_32312:I
      official u Lgac;u:I
    • ICON_OFFSET Link icon

      private static final int ICON_OFFSET
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named ICON_OFFSET Lnet/minecraft/client/gui/screen/GameModeSwitcherScreen;ICON_OFFSET:I
      intermediary field_32313 Lnet/minecraft/class_5289;field_32313:I
      official v Lgac;v:I
    • field_32314 Link icon

      private static final int field_32314
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_32314 Lnet/minecraft/client/gui/screen/GameModeSwitcherScreen;field_32314:I
      intermediary field_32314 Lnet/minecraft/class_5289;field_32314:I
      official w Lgac;w:I
    • field_32315 Link icon

      private static final int field_32315
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named field_32315 Lnet/minecraft/client/gui/screen/GameModeSwitcherScreen;field_32315:I
      intermediary field_32315 Lnet/minecraft/class_5289;field_32315:I
      official x Lgac;x:I
    • UI_WIDTH Link icon

      private static final int UI_WIDTH
      Mappings:
      Namespace Name Mixin selector
      named UI_WIDTH Lnet/minecraft/client/gui/screen/GameModeSwitcherScreen;UI_WIDTH:I
      intermediary field_24567 Lnet/minecraft/class_5289;field_24567:I
      official y Lgac;y:I
    • SELECT_NEXT_TEXT Link icon

      private static final Text SELECT_NEXT_TEXT
      Mappings:
      Namespace Name Mixin selector
      named SELECT_NEXT_TEXT Lnet/minecraft/client/gui/screen/GameModeSwitcherScreen;SELECT_NEXT_TEXT:Lnet/minecraft/text/Text;
      intermediary field_25454 Lnet/minecraft/class_5289;field_25454:Lnet/minecraft/class_2561;
      official z Lgac;z:Lxg;
    • currentGameMode Link icon

      private final GameModeSwitcherScreen.GameModeSelection currentGameMode
      Mappings:
      Namespace Name Mixin selector
      named currentGameMode Lnet/minecraft/client/gui/screen/GameModeSwitcherScreen;currentGameMode:Lnet/minecraft/client/gui/screen/GameModeSwitcherScreen$GameModeSelection;
      intermediary field_24568 Lnet/minecraft/class_5289;field_24568:Lnet/minecraft/class_5289$class_5290;
      official A Lgac;A:Lgac$a;
    • gameMode Link icon

      Mappings:
      Namespace Name Mixin selector
      named gameMode Lnet/minecraft/client/gui/screen/GameModeSwitcherScreen;gameMode:Lnet/minecraft/client/gui/screen/GameModeSwitcherScreen$GameModeSelection;
      intermediary field_24569 Lnet/minecraft/class_5289;field_24569:Lnet/minecraft/class_5289$class_5290;
      official B Lgac;B:Lgac$a;
    • lastMouseX Link icon

      private int lastMouseX
      Mappings:
      Namespace Name Mixin selector
      named lastMouseX Lnet/minecraft/client/gui/screen/GameModeSwitcherScreen;lastMouseX:I
      intermediary field_24570 Lnet/minecraft/class_5289;field_24570:I
      official C Lgac;C:I
    • lastMouseY Link icon

      private int lastMouseY
      Mappings:
      Namespace Name Mixin selector
      named lastMouseY Lnet/minecraft/client/gui/screen/GameModeSwitcherScreen;lastMouseY:I
      intermediary field_24571 Lnet/minecraft/class_5289;field_24571:I
      official D Lgac;D:I
    • mouseUsedForSelection Link icon

      private boolean mouseUsedForSelection
      Mappings:
      Namespace Name Mixin selector
      named mouseUsedForSelection Lnet/minecraft/client/gui/screen/GameModeSwitcherScreen;mouseUsedForSelection:Z
      intermediary field_24572 Lnet/minecraft/class_5289;field_24572:Z
      official E Lgac;E:Z
    • gameModeButtons Link icon

      private final List<GameModeSwitcherScreen.ButtonWidget> gameModeButtons
      Mappings:
      Namespace Name Mixin selector
      named gameModeButtons Lnet/minecraft/client/gui/screen/GameModeSwitcherScreen;gameModeButtons:Ljava/util/List;
      intermediary field_24573 Lnet/minecraft/class_5289;field_24573:Ljava/util/List;
      official F Lgac;F:Ljava/util/List;
  • Constructor Details Link icon

    • GameModeSwitcherScreen Link icon

      public GameModeSwitcherScreen()
  • Method Details Link icon

    • getPreviousGameMode Link icon

      private GameMode getPreviousGameMode()
      Mappings:
      Namespace Name Mixin selector
      named getPreviousGameMode Lnet/minecraft/client/gui/screen/GameModeSwitcherScreen;getPreviousGameMode()Lnet/minecraft/world/GameMode;
      intermediary method_30106 Lnet/minecraft/class_5289;method_30106()Lnet/minecraft/class_1934;
      official m Lgac;m()Ldkg;
    • init Link icon

      protected void init()
      Called when a screen should be initialized.

      This method is called when this screen is opened or resized.

      Overrides:
      init in class Screen
      Mappings:
      Namespace Name Mixin selector
      named init Lnet/minecraft/client/gui/screen/Screen;init()V
      intermediary method_25426 Lnet/minecraft/class_437;method_25426()V
      official aO_ Lfzq;aO_()V
    • render Link icon

      public void render(DrawContext context, int mouseX, int mouseY, float deltaTicks)
      Specified by:
      render in interface Drawable
      Overrides:
      render in class Screen
      Mappings:
      Namespace Name Mixin selector
      named render Lnet/minecraft/client/gui/Drawable;render(Lnet/minecraft/client/gui/DrawContext;IIF)V
      intermediary method_25394 Lnet/minecraft/class_4068;method_25394(Lnet/minecraft/class_332;IIF)V
      official a Lfvb;a(Lftk;IIF)V
    • renderBackground Link icon

      public void renderBackground(DrawContext context, int mouseX, int mouseY, float deltaTicks)
      Renders the background of this screen.

      If the client is in a world, renders the translucent background gradient. Otherwise renders the background texture.

      Overrides:
      renderBackground in class Screen
      Mappings:
      Namespace Name Mixin selector
      named renderBackground Lnet/minecraft/client/gui/screen/Screen;renderBackground(Lnet/minecraft/client/gui/DrawContext;IIF)V
      intermediary method_25420 Lnet/minecraft/class_437;method_25420(Lnet/minecraft/class_332;IIF)V
      official b Lfzq;b(Lftk;IIF)V
    • apply Link icon

      private void apply()
      Mappings:
      Namespace Name Mixin selector
      named apply Lnet/minecraft/client/gui/screen/GameModeSwitcherScreen;apply()V
      intermediary method_28068 Lnet/minecraft/class_5289;method_28068()V
      official E Lgac;E()V
    • apply Link icon

      private static void apply(MinecraftClient client, GameModeSwitcherScreen.GameModeSelection gameModeSelection)
      Mappings:
      Namespace Name Mixin selector
      named apply Lnet/minecraft/client/gui/screen/GameModeSwitcherScreen;apply(Lnet/minecraft/client/MinecraftClient;Lnet/minecraft/client/gui/screen/GameModeSwitcherScreen$GameModeSelection;)V
      intermediary method_28064 Lnet/minecraft/class_5289;method_28064(Lnet/minecraft/class_310;Lnet/minecraft/class_5289$class_5290;)V
      official a Lgac;a(Lfqq;Lgac$a;)V
    • checkForClose Link icon

      private boolean checkForClose()
      Mappings:
      Namespace Name Mixin selector
      named checkForClose Lnet/minecraft/client/gui/screen/GameModeSwitcherScreen;checkForClose()Z
      intermediary method_28069 Lnet/minecraft/class_5289;method_28069()Z
      official F Lgac;F()Z
    • keyPressed Link icon

      public boolean keyPressed(int keyCode, int scanCode, int modifiers)
      Callback for when a key down event has been captured. The key code is identified by the constants in GLFW class.
      Specified by:
      keyPressed in interface Element
      Specified by:
      keyPressed in interface ParentElement
      Overrides:
      keyPressed in class Screen
      Parameters:
      keyCode - the named key code of the event as described in the GLFW class
      scanCode - the unique/platform-specific scan code of the keyboard input
      modifiers - a GLFW bitfield describing the modifier keys that are held down (see GLFW Modifier key flags)
      Returns:
      true to indicate that the event handling is successful/valid
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named keyPressed Lnet/minecraft/client/gui/Element;keyPressed(III)Z
      intermediary method_25404 Lnet/minecraft/class_364;method_25404(III)Z
      official a Lfvv;a(III)Z
    • shouldPause Link icon

      public boolean shouldPause()
      Overrides:
      shouldPause in class Screen
      Mappings:
      Namespace Name Mixin selector
      named shouldPause Lnet/minecraft/client/gui/screen/Screen;shouldPause()Z
      intermediary method_25421 Lnet/minecraft/class_437;method_25421()Z
      official k Lfzq;k()Z