Class GameMenuScreen

All Implemented Interfaces:
Drawable, Element, Navigable, ParentElement

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

    • DRAFT_REPORT_ICON_TEXTURE

      private static final Identifier DRAFT_REPORT_ICON_TEXTURE
      Mappings:
      Namespace Name Mixin selector
      named DRAFT_REPORT_ICON_TEXTURE Lnet/minecraft/client/gui/screen/GameMenuScreen;DRAFT_REPORT_ICON_TEXTURE:Lnet/minecraft/util/Identifier;
      intermediary field_45416 Lnet/minecraft/class_433;field_45416:Lnet/minecraft/class_2960;
      official a Lfns;a:Lakq;
    • GRID_COLUMNS

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

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

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

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

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

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

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

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

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

      private static final Text REPORT_BUGS_TEXT
      Mappings:
      Namespace Name Mixin selector
      named REPORT_BUGS_TEXT Lnet/minecraft/client/gui/screen/GameMenuScreen;REPORT_BUGS_TEXT:Lnet/minecraft/text/Text;
      intermediary field_41625 Lnet/minecraft/class_433;field_41625:Lnet/minecraft/class_2561;
      official y Lfns;y:Lwy;
    • field_52133

      private static final Text field_52133
      Mappings:
      Namespace Name Mixin selector
      named field_52133 Lnet/minecraft/client/gui/screen/GameMenuScreen;field_52133:Lnet/minecraft/text/Text;
      intermediary field_52133 Lnet/minecraft/class_433;field_52133:Lnet/minecraft/class_2561;
      official z Lfns;z:Lwy;
    • field_52132

      private static final Text field_52132
      Mappings:
      Namespace Name Mixin selector
      named field_52132 Lnet/minecraft/client/gui/screen/GameMenuScreen;field_52132:Lnet/minecraft/text/Text;
      intermediary field_52132 Lnet/minecraft/class_433;field_52132:Lnet/minecraft/class_2561;
      official A Lfns;A:Lwy;
    • OPTIONS_TEXT

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

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

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

      private static final Text RETURN_TO_MENU_TEXT
      Mappings:
      Namespace Name Mixin selector
      named RETURN_TO_MENU_TEXT Lnet/minecraft/client/gui/screen/GameMenuScreen;RETURN_TO_MENU_TEXT:Lnet/minecraft/text/Text;
      intermediary field_41611 Lnet/minecraft/class_433;field_41611:Lnet/minecraft/class_2561;
      official E Lfns;E:Lwy;
    • SAVING_LEVEL_TEXT

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

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

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

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

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

    • GameMenuScreen

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

    • shouldShowMenu

      public boolean shouldShowMenu()
      Mappings:
      Namespace Name Mixin selector
      named shouldShowMenu Lnet/minecraft/client/gui/screen/GameMenuScreen;shouldShowMenu()Z
      intermediary method_53558 Lnet/minecraft/class_433;method_53558()Z
      official m Lfns;m()Z
    • 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() to set the element that is initially focused.

      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 aP_ Lfnx;aP_()V
    • initWidgets

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

      static void method_60873(Screen screen, GridWidget.Adder adder)
      Mappings:
      Namespace Name Mixin selector
      named method_60873 Lnet/minecraft/client/gui/screen/GameMenuScreen;method_60873(Lnet/minecraft/client/gui/screen/Screen;Lnet/minecraft/client/gui/widget/GridWidget$Adder;)V
      intermediary method_60873 Lnet/minecraft/class_433;method_60873(Lnet/minecraft/class_437;Lnet/minecraft/class_7845$class_7939;)V
      official a Lfns;a(Lfnx;Lfls$b;)V
    • disconnect

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

      public void tick()
      Overrides:
      tick in class Screen
      Mappings:
      Namespace Name Mixin selector
      named tick Lnet/minecraft/client/gui/screen/Screen;tick()V
      intermediary method_25393 Lnet/minecraft/class_437;method_25393()V
      official e Lfnx;e()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
      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 Lfjj;a(Lfht;IIF)V
    • renderBackground

      public void renderBackground(DrawContext context, int mouseX, int mouseY, float delta)
      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 Lfnx;b(Lfht;IIF)V
    • createButton

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

      private static ButtonWidget createUrlButton(Screen screen, Text text, String url)
      Mappings:
      Namespace Name Mixin selector
      named createUrlButton Lnet/minecraft/client/gui/screen/GameMenuScreen;createUrlButton(Lnet/minecraft/client/gui/screen/Screen;Lnet/minecraft/text/Text;Ljava/lang/String;)Lnet/minecraft/client/gui/widget/ButtonWidget;
      intermediary method_47899 Lnet/minecraft/class_433;method_47899(Lnet/minecraft/class_437;Lnet/minecraft/class_2561;Ljava/lang/String;)Lnet/minecraft/class_4185;
      official a Lfns;a(Lfnx;Lwy;Ljava/lang/String;)Lfig;