Class GameMenuScreen

All Implemented Interfaces:
Drawable, Element, Navigable, ParentElement

@Environment(CLIENT) public class GameMenuScreen extends Screen
Mappings:
Namespace Name
official eul
intermediary net/minecraft/class_433
named net/minecraft/client/gui/screen/GameMenuScreen
  • Field Details

    • GRID_COLUMNS

      private static final int GRID_COLUMNS
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Leul;a:I
      intermediary field_41616 Lnet/minecraft/class_433;field_41616:I
      named GRID_COLUMNS Lnet/minecraft/client/gui/screen/GameMenuScreen;GRID_COLUMNS:I
    • BUTTONS_TOP_MARGIN

      private static final int BUTTONS_TOP_MARGIN
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official b Leul;b:I
      intermediary field_41617 Lnet/minecraft/class_433;field_41617:I
      named BUTTONS_TOP_MARGIN Lnet/minecraft/client/gui/screen/GameMenuScreen;BUTTONS_TOP_MARGIN:I
    • GRID_MARGIN

      private static final int GRID_MARGIN
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official c Leul;c:I
      intermediary field_41618 Lnet/minecraft/class_433;field_41618:I
      named GRID_MARGIN Lnet/minecraft/client/gui/screen/GameMenuScreen;GRID_MARGIN:I
    • WIDE_BUTTON_WIDTH

      private static final int WIDE_BUTTON_WIDTH
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official k Leul;k:I
      intermediary field_41619 Lnet/minecraft/class_433;field_41619:I
      named WIDE_BUTTON_WIDTH Lnet/minecraft/client/gui/screen/GameMenuScreen;WIDE_BUTTON_WIDTH:I
    • NORMAL_BUTTON_WIDTH

      private static final int NORMAL_BUTTON_WIDTH
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official l Leul;l:I
      intermediary field_41620 Lnet/minecraft/class_433;field_41620:I
      named NORMAL_BUTTON_WIDTH Lnet/minecraft/client/gui/screen/GameMenuScreen;NORMAL_BUTTON_WIDTH:I
    • RETURN_TO_GAME_TEXT

      private static final Text RETURN_TO_GAME_TEXT
      Mappings:
      Namespace Name Mixin selector
      official m Leul;m:Lsw;
      intermediary field_41621 Lnet/minecraft/class_433;field_41621:Lnet/minecraft/class_2561;
      named RETURN_TO_GAME_TEXT Lnet/minecraft/client/gui/screen/GameMenuScreen;RETURN_TO_GAME_TEXT:Lnet/minecraft/text/Text;
    • ADVANCEMENTS_TEXT

      private static final Text ADVANCEMENTS_TEXT
      Mappings:
      Namespace Name Mixin selector
      official n Leul;n:Lsw;
      intermediary field_41622 Lnet/minecraft/class_433;field_41622:Lnet/minecraft/class_2561;
      named ADVANCEMENTS_TEXT Lnet/minecraft/client/gui/screen/GameMenuScreen;ADVANCEMENTS_TEXT:Lnet/minecraft/text/Text;
    • STATS_TEXT

      private static final Text STATS_TEXT
      Mappings:
      Namespace Name Mixin selector
      official o Leul;o:Lsw;
      intermediary field_41623 Lnet/minecraft/class_433;field_41623:Lnet/minecraft/class_2561;
      named STATS_TEXT Lnet/minecraft/client/gui/screen/GameMenuScreen;STATS_TEXT:Lnet/minecraft/text/Text;
    • SEND_FEEDBACK_TEXT

      private static final Text SEND_FEEDBACK_TEXT
      Mappings:
      Namespace Name Mixin selector
      official p Leul;p:Lsw;
      intermediary field_41624 Lnet/minecraft/class_433;field_41624:Lnet/minecraft/class_2561;
      named SEND_FEEDBACK_TEXT Lnet/minecraft/client/gui/screen/GameMenuScreen;SEND_FEEDBACK_TEXT:Lnet/minecraft/text/Text;
    • REPORT_BUGS_TEXT

      private static final Text REPORT_BUGS_TEXT
      Mappings:
      Namespace Name Mixin selector
      official q Leul;q:Lsw;
      intermediary field_41625 Lnet/minecraft/class_433;field_41625:Lnet/minecraft/class_2561;
      named REPORT_BUGS_TEXT Lnet/minecraft/client/gui/screen/GameMenuScreen;REPORT_BUGS_TEXT:Lnet/minecraft/text/Text;
    • OPTIONS_TEXT

      private static final Text OPTIONS_TEXT
      Mappings:
      Namespace Name Mixin selector
      official r Leul;r:Lsw;
      intermediary field_41626 Lnet/minecraft/class_433;field_41626:Lnet/minecraft/class_2561;
      named OPTIONS_TEXT Lnet/minecraft/client/gui/screen/GameMenuScreen;OPTIONS_TEXT:Lnet/minecraft/text/Text;
    • SHARE_TO_LAN_TEXT

      private static final Text SHARE_TO_LAN_TEXT
      Mappings:
      Namespace Name Mixin selector
      official s Leul;s:Lsw;
      intermediary field_41627 Lnet/minecraft/class_433;field_41627:Lnet/minecraft/class_2561;
      named SHARE_TO_LAN_TEXT Lnet/minecraft/client/gui/screen/GameMenuScreen;SHARE_TO_LAN_TEXT:Lnet/minecraft/text/Text;
    • PLAYER_REPORTING_TEXT

      private static final Text PLAYER_REPORTING_TEXT
      Mappings:
      Namespace Name Mixin selector
      official t Leul;t:Lsw;
      intermediary field_41628 Lnet/minecraft/class_433;field_41628:Lnet/minecraft/class_2561;
      named PLAYER_REPORTING_TEXT Lnet/minecraft/client/gui/screen/GameMenuScreen;PLAYER_REPORTING_TEXT:Lnet/minecraft/text/Text;
    • RETURN_TO_MENU_TEXT

      private static final Text RETURN_TO_MENU_TEXT
      Mappings:
      Namespace Name Mixin selector
      official u Leul;u:Lsw;
      intermediary field_41611 Lnet/minecraft/class_433;field_41611:Lnet/minecraft/class_2561;
      named RETURN_TO_MENU_TEXT Lnet/minecraft/client/gui/screen/GameMenuScreen;RETURN_TO_MENU_TEXT:Lnet/minecraft/text/Text;
    • DISCONNECT_TEXT

      private static final Text DISCONNECT_TEXT
      Mappings:
      Namespace Name Mixin selector
      official v Leul;v:Lsw;
      intermediary field_41612 Lnet/minecraft/class_433;field_41612:Lnet/minecraft/class_2561;
      named DISCONNECT_TEXT Lnet/minecraft/client/gui/screen/GameMenuScreen;DISCONNECT_TEXT:Lnet/minecraft/text/Text;
    • SAVING_LEVEL_TEXT

      private static final Text SAVING_LEVEL_TEXT
      Mappings:
      Namespace Name Mixin selector
      official w Leul;w:Lsw;
      intermediary field_41613 Lnet/minecraft/class_433;field_41613:Lnet/minecraft/class_2561;
      named SAVING_LEVEL_TEXT Lnet/minecraft/client/gui/screen/GameMenuScreen;SAVING_LEVEL_TEXT:Lnet/minecraft/text/Text;
    • GAME_TEXT

      private static final Text GAME_TEXT
      Mappings:
      Namespace Name Mixin selector
      official x Leul;x:Lsw;
      intermediary field_41614 Lnet/minecraft/class_433;field_41614:Lnet/minecraft/class_2561;
      named GAME_TEXT Lnet/minecraft/client/gui/screen/GameMenuScreen;GAME_TEXT:Lnet/minecraft/text/Text;
    • PAUSED_TEXT

      private static final Text PAUSED_TEXT
      Mappings:
      Namespace Name Mixin selector
      official y Leul;y:Lsw;
      intermediary field_41615 Lnet/minecraft/class_433;field_41615:Lnet/minecraft/class_2561;
      named PAUSED_TEXT Lnet/minecraft/client/gui/screen/GameMenuScreen;PAUSED_TEXT:Lnet/minecraft/text/Text;
    • showMenu

      private final boolean showMenu
      Mappings:
      Namespace Name Mixin selector
      official z Leul;z:Z
      intermediary field_19319 Lnet/minecraft/class_433;field_19319:Z
      named showMenu Lnet/minecraft/client/gui/screen/GameMenuScreen;showMenu:Z
    • exitButton

      @Nullable private @Nullable ButtonWidget exitButton
      Mappings:
      Namespace Name Mixin selector
      official A Leul;A:Lepi;
      intermediary field_40792 Lnet/minecraft/class_433;field_40792:Lnet/minecraft/class_4185;
      named exitButton Lnet/minecraft/client/gui/screen/GameMenuScreen;exitButton:Lnet/minecraft/client/gui/widget/ButtonWidget;
  • Constructor Details

    • GameMenuScreen

      public GameMenuScreen(boolean showMenu)
      Mappings:
      Namespace Name Mixin selector
      official <init> Leul;<init>(Z)V
      intermediary <init> Lnet/minecraft/class_433;<init>(Z)V
      named <init> Lnet/minecraft/client/gui/screen/GameMenuScreen;<init>(Z)V
  • Method Details

    • init

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

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

      This should call Screen.setInitialFocus(net.minecraft.client.gui.Element) to set the element that is initially focused.

      Overrides:
      init in class Screen
      Mappings:
      Namespace Name Mixin selector
      official b Leuq;b()V
      intermediary method_25426 Lnet/minecraft/class_437;method_25426()V
      named init Lnet/minecraft/client/gui/screen/Screen;init()V
    • initWidgets

      private void initWidgets()
      Mappings:
      Namespace Name Mixin selector
      official l Leul;l()V
      intermediary method_20543 Lnet/minecraft/class_433;method_20543()V
      named initWidgets Lnet/minecraft/client/gui/screen/GameMenuScreen;initWidgets()V
    • disconnect

      private void disconnect()
      Mappings:
      Namespace Name Mixin selector
      official B Leul;B()V
      intermediary method_47632 Lnet/minecraft/class_433;method_47632()V
      named disconnect Lnet/minecraft/client/gui/screen/GameMenuScreen;disconnect()V
    • tick

      public void tick()
      Overrides:
      tick in class Screen
      Mappings:
      Namespace Name Mixin selector
      official f Leuq;f()V
      intermediary method_25393 Lnet/minecraft/class_437;method_25393()V
      named tick Lnet/minecraft/client/gui/screen/Screen;tick()V
    • render

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

      private ButtonWidget createButton(Text text, Supplier<Screen> screenSupplier)
      Mappings:
      Namespace Name Mixin selector
      official a Leul;a(Lsw;Ljava/util/function/Supplier;)Lepi;
      intermediary method_47900 Lnet/minecraft/class_433;method_47900(Lnet/minecraft/class_2561;Ljava/util/function/Supplier;)Lnet/minecraft/class_4185;
      named createButton Lnet/minecraft/client/gui/screen/GameMenuScreen;createButton(Lnet/minecraft/text/Text;Ljava/util/function/Supplier;)Lnet/minecraft/client/gui/widget/ButtonWidget;
    • createUrlButton

      private ButtonWidget createUrlButton(Text text, String url)
      Mappings:
      Namespace Name Mixin selector
      official a Leul;a(Lsw;Ljava/lang/String;)Lepi;
      intermediary method_47899 Lnet/minecraft/class_433;method_47899(Lnet/minecraft/class_2561;Ljava/lang/String;)Lnet/minecraft/class_4185;
      named createUrlButton Lnet/minecraft/client/gui/screen/GameMenuScreen;createUrlButton(Lnet/minecraft/text/Text;Ljava/lang/String;)Lnet/minecraft/client/gui/widget/ButtonWidget;