Class DisconnectedScreen

All Implemented Interfaces:
Drawable, Element, Navigable, ParentElement

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

    • TO_MENU_TEXT

      private static final Text TO_MENU_TEXT
      Mappings:
      Namespace Name Mixin selector
      official a Lexm;a:Ltl;
      intermediary field_44549 Lnet/minecraft/class_419;field_44549:Lnet/minecraft/class_2561;
      named TO_MENU_TEXT Lnet/minecraft/client/gui/screen/DisconnectedScreen;TO_MENU_TEXT:Lnet/minecraft/text/Text;
    • TO_TITLE_TEXT

      private static final Text TO_TITLE_TEXT
      Mappings:
      Namespace Name Mixin selector
      official b Lexm;b:Ltl;
      intermediary field_44550 Lnet/minecraft/class_419;field_44550:Lnet/minecraft/class_2561;
      named TO_TITLE_TEXT Lnet/minecraft/client/gui/screen/DisconnectedScreen;TO_TITLE_TEXT:Lnet/minecraft/text/Text;
    • parent

      private final Screen parent
      Mappings:
      Namespace Name Mixin selector
      official c Lexm;c:Leyk;
      intermediary field_2456 Lnet/minecraft/class_419;field_2456:Lnet/minecraft/class_437;
      named parent Lnet/minecraft/client/gui/screen/DisconnectedScreen;parent:Lnet/minecraft/client/gui/screen/Screen;
    • reason

      private final Text reason
      Mappings:
      Namespace Name Mixin selector
      official k Lexm;k:Ltl;
      intermediary field_2457 Lnet/minecraft/class_419;field_2457:Lnet/minecraft/class_2561;
      named reason Lnet/minecraft/client/gui/screen/DisconnectedScreen;reason:Lnet/minecraft/text/Text;
    • buttonLabel

      private final Text buttonLabel
      Mappings:
      Namespace Name Mixin selector
      official l Lexm;l:Ltl;
      intermediary field_44551 Lnet/minecraft/class_419;field_44551:Lnet/minecraft/class_2561;
      named buttonLabel Lnet/minecraft/client/gui/screen/DisconnectedScreen;buttonLabel:Lnet/minecraft/text/Text;
    • grid

      private final DirectionalLayoutWidget grid
      Mappings:
      Namespace Name Mixin selector
      official m Lexm;m:Lewd;
      intermediary field_44552 Lnet/minecraft/class_419;field_44552:Lnet/minecraft/class_8667;
      named grid Lnet/minecraft/client/gui/screen/DisconnectedScreen;grid:Lnet/minecraft/client/gui/widget/DirectionalLayoutWidget;
  • Constructor Details

    • DisconnectedScreen

      public DisconnectedScreen(Screen parent, Text title, Text reason)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lexm;<init>(Leyk;Ltl;Ltl;)V
      intermediary <init> Lnet/minecraft/class_419;<init>(Lnet/minecraft/class_437;Lnet/minecraft/class_2561;Lnet/minecraft/class_2561;)V
      named <init> Lnet/minecraft/client/gui/screen/DisconnectedScreen;<init>(Lnet/minecraft/client/gui/screen/Screen;Lnet/minecraft/text/Text;Lnet/minecraft/text/Text;)V
    • DisconnectedScreen

      public DisconnectedScreen(Screen parent, Text title, Text reason, Text buttonLabel)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lexm;<init>(Leyk;Ltl;Ltl;Ltl;)V
      intermediary <init> Lnet/minecraft/class_419;<init>(Lnet/minecraft/class_437;Lnet/minecraft/class_2561;Lnet/minecraft/class_2561;Lnet/minecraft/class_2561;)V
      named <init> Lnet/minecraft/client/gui/screen/DisconnectedScreen;<init>(Lnet/minecraft/client/gui/screen/Screen;Lnet/minecraft/text/Text;Lnet/minecraft/text/Text;Lnet/minecraft/text/Text;)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 aH_ Leyk;aH_()V
      intermediary method_25426 Lnet/minecraft/class_437;method_25426()V
      named init Lnet/minecraft/client/gui/screen/Screen;init()V
    • initTabNavigation

      protected void initTabNavigation()
      Overrides:
      initTabNavigation in class Screen
      Mappings:
      Namespace Name Mixin selector
      official b Leyk;b()V
      intermediary method_48640 Lnet/minecraft/class_437;method_48640()V
      named initTabNavigation Lnet/minecraft/client/gui/screen/Screen;initTabNavigation()V
    • getNarratedTitle

      public Text getNarratedTitle()
      Overrides:
      getNarratedTitle in class Screen
      Mappings:
      Namespace Name Mixin selector
      official g Leyk;g()Ltl;
      intermediary method_25435 Lnet/minecraft/class_437;method_25435()Lnet/minecraft/class_2561;
      named getNarratedTitle Lnet/minecraft/client/gui/screen/Screen;getNarratedTitle()Lnet/minecraft/text/Text;
    • shouldCloseOnEsc

      public boolean shouldCloseOnEsc()
      Checks whether this screen should be closed when the escape key is pressed.
      Overrides:
      shouldCloseOnEsc in class Screen
      Mappings:
      Namespace Name Mixin selector
      official ay_ Leyk;ay_()Z
      intermediary method_25422 Lnet/minecraft/class_437;method_25422()Z
      named shouldCloseOnEsc Lnet/minecraft/client/gui/screen/Screen;shouldCloseOnEsc()Z