Class AddServerScreen

All Implemented Interfaces:
Drawable, Element, ParentElement

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

    • ENTER_NAME_TEXT

      private static final Text ENTER_NAME_TEXT
      Mappings:
      Namespace Name Mixin selector
      official a Lejp;a:Lrm;
      intermediary field_26541 Lnet/minecraft/class_422;field_26541:Lnet/minecraft/class_2561;
      named ENTER_NAME_TEXT Lnet/minecraft/client/gui/screen/AddServerScreen;ENTER_NAME_TEXT:Lnet/minecraft/text/Text;
    • ENTER_IP_TEXT

      private static final Text ENTER_IP_TEXT
      Mappings:
      Namespace Name Mixin selector
      official b Lejp;b:Lrm;
      intermediary field_26542 Lnet/minecraft/class_422;field_26542:Lnet/minecraft/class_2561;
      named ENTER_IP_TEXT Lnet/minecraft/client/gui/screen/AddServerScreen;ENTER_IP_TEXT:Lnet/minecraft/text/Text;
    • addButton

      private ButtonWidget addButton
      Mappings:
      Namespace Name Mixin selector
      official c Lejp;c:Legs;
      intermediary field_2472 Lnet/minecraft/class_422;field_2472:Lnet/minecraft/class_4185;
      named addButton Lnet/minecraft/client/gui/screen/AddServerScreen;addButton:Lnet/minecraft/client/gui/widget/ButtonWidget;
    • callback

      private final BooleanConsumer callback
      Mappings:
      Namespace Name Mixin selector
      official n Lejp;n:Lit/unimi/dsi/fastutil/booleans/BooleanConsumer;
      intermediary field_19236 Lnet/minecraft/class_422;field_19236:Lit/unimi/dsi/fastutil/booleans/BooleanConsumer;
      named callback Lnet/minecraft/client/gui/screen/AddServerScreen;callback:Lit/unimi/dsi/fastutil/booleans/BooleanConsumer;
    • server

      private final ServerInfo server
      Mappings:
      Namespace Name Mixin selector
      official o Lejp;o:Lets;
      intermediary field_2469 Lnet/minecraft/class_422;field_2469:Lnet/minecraft/class_642;
      named server Lnet/minecraft/client/gui/screen/AddServerScreen;server:Lnet/minecraft/client/network/ServerInfo;
    • addressField

      private TextFieldWidget addressField
      Mappings:
      Namespace Name Mixin selector
      official p Lejp;p:Leha;
      intermediary field_2474 Lnet/minecraft/class_422;field_2474:Lnet/minecraft/class_342;
      named addressField Lnet/minecraft/client/gui/screen/AddServerScreen;addressField:Lnet/minecraft/client/gui/widget/TextFieldWidget;
    • serverNameField

      private TextFieldWidget serverNameField
      Mappings:
      Namespace Name Mixin selector
      official q Lejp;q:Leha;
      intermediary field_2471 Lnet/minecraft/class_422;field_2471:Lnet/minecraft/class_342;
      named serverNameField Lnet/minecraft/client/gui/screen/AddServerScreen;serverNameField:Lnet/minecraft/client/gui/widget/TextFieldWidget;
    • parent

      private final Screen parent
      Mappings:
      Namespace Name Mixin selector
      official r Lejp;r:Lekj;
      intermediary field_21791 Lnet/minecraft/class_422;field_21791:Lnet/minecraft/class_437;
      named parent Lnet/minecraft/client/gui/screen/AddServerScreen;parent:Lnet/minecraft/client/gui/screen/Screen;
  • Constructor Details

    • AddServerScreen

      public AddServerScreen(Screen parent, BooleanConsumer callback, ServerInfo server)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lejp;<init>(Lekj;Lit/unimi/dsi/fastutil/booleans/BooleanConsumer;Lets;)V
      intermediary <init> Lnet/minecraft/class_422;<init>(Lnet/minecraft/class_437;Lit/unimi/dsi/fastutil/booleans/BooleanConsumer;Lnet/minecraft/class_642;)V
      named <init> Lnet/minecraft/client/gui/screen/AddServerScreen;<init>(Lnet/minecraft/client/gui/screen/Screen;Lit/unimi/dsi/fastutil/booleans/BooleanConsumer;Lnet/minecraft/client/network/ServerInfo;)V
  • Method Details

    • tick

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

      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
      official b Lekj;b()V
      intermediary method_25426 Lnet/minecraft/class_437;method_25426()V
      named init Lnet/minecraft/client/gui/screen/Screen;init()V
    • resize

      public void resize(MinecraftClient client, int width, int height)
      Overrides:
      resize in class Screen
      Mappings:
      Namespace Name Mixin selector
      official a Lekj;a(Leev;II)V
      intermediary method_25410 Lnet/minecraft/class_437;method_25410(Lnet/minecraft/class_310;II)V
      named resize Lnet/minecraft/client/gui/screen/Screen;resize(Lnet/minecraft/client/MinecraftClient;II)V
    • removed

      public void removed()
      Overrides:
      removed in class Screen
      Mappings:
      Namespace Name Mixin selector
      official e Lekj;e()V
      intermediary method_25432 Lnet/minecraft/class_437;method_25432()V
      named removed Lnet/minecraft/client/gui/screen/Screen;removed()V
    • addAndClose

      private void addAndClose()
      Mappings:
      Namespace Name Mixin selector
      official h Lejp;h()V
      intermediary method_2172 Lnet/minecraft/class_422;method_2172()V
      named addAndClose Lnet/minecraft/client/gui/screen/AddServerScreen;addAndClose()V
    • close

      public void close()
      Overrides:
      close in class Screen
      Mappings:
      Namespace Name Mixin selector
      official ah_ Lekj;ah_()V
      intermediary method_25419 Lnet/minecraft/class_437;method_25419()V
      named close Lnet/minecraft/client/gui/screen/Screen;close()V
    • updateAddButton

      private void updateAddButton()
      Mappings:
      Namespace Name Mixin selector
      official j Lejp;j()V
      intermediary method_36223 Lnet/minecraft/class_422;method_36223()V
      named updateAddButton Lnet/minecraft/client/gui/screen/AddServerScreen;updateAddButton()V
    • render

      public void render(MatrixStack matrices, int mouseX, int mouseY, float delta)
      Specified by:
      render in interface Drawable
      Overrides:
      render in class Screen
      Mappings:
      Namespace Name Mixin selector
      official a Lehn;a(Ldzt;IIF)V
      intermediary method_25394 Lnet/minecraft/class_4068;method_25394(Lnet/minecraft/class_4587;IIF)V
      named render Lnet/minecraft/client/gui/Drawable;render(Lnet/minecraft/client/util/math/MatrixStack;IIF)V