Class AddServerScreen

All Implemented Interfaces:
Drawable, Element, Navigable, ParentElement

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

    • ENTER_NAME_TEXT

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

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

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

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

      private final ServerInfo server
      Mappings:
      Namespace Name Mixin selector
      named server Lnet/minecraft/client/gui/screen/multiplayer/AddServerScreen;server:Lnet/minecraft/client/network/ServerInfo;
      intermediary field_2469 Lnet/minecraft/class_422;field_2469:Lnet/minecraft/class_642;
      official s Lftf;s:Lgfy;
    • addressField

      private TextFieldWidget addressField
      Mappings:
      Namespace Name Mixin selector
      named addressField Lnet/minecraft/client/gui/screen/multiplayer/AddServerScreen;addressField:Lnet/minecraft/client/gui/widget/TextFieldWidget;
      intermediary field_2474 Lnet/minecraft/class_422;field_2474:Lnet/minecraft/class_342;
      official u Lftf;u:Lfon;
    • serverNameField

      private TextFieldWidget serverNameField
      Mappings:
      Namespace Name Mixin selector
      named serverNameField Lnet/minecraft/client/gui/screen/multiplayer/AddServerScreen;serverNameField:Lnet/minecraft/client/gui/widget/TextFieldWidget;
      intermediary field_2471 Lnet/minecraft/class_422;field_2471:Lnet/minecraft/class_342;
      official v Lftf;v:Lfon;
    • parent

      private final Screen parent
      Mappings:
      Namespace Name Mixin selector
      named parent Lnet/minecraft/client/gui/screen/multiplayer/AddServerScreen;parent:Lnet/minecraft/client/gui/screen/Screen;
      intermediary field_21791 Lnet/minecraft/class_422;field_21791:Lnet/minecraft/class_437;
      official w Lftf;w:Lftx;
  • Constructor Details

    • AddServerScreen

      public AddServerScreen(Screen parent, BooleanConsumer callback, ServerInfo server)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/client/gui/screen/multiplayer/AddServerScreen;<init>(Lnet/minecraft/client/gui/screen/Screen;Lit/unimi/dsi/fastutil/booleans/BooleanConsumer;Lnet/minecraft/client/network/ServerInfo;)V
      intermediary <init> Lnet/minecraft/class_422;<init>(Lnet/minecraft/class_437;Lit/unimi/dsi/fastutil/booleans/BooleanConsumer;Lnet/minecraft/class_642;)V
      official <init> Lftf;<init>(Lftx;Lit/unimi/dsi/fastutil/booleans/BooleanConsumer;Lgfy;)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.

      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 aT_ Lftx;aT_()V
    • setInitialFocus

      protected void setInitialFocus()
      This should be overridden with a call to Screen.setInitialFocus(Element) to set the element that is initially focused.
      Overrides:
      setInitialFocus in class Screen
      Mappings:
      Namespace Name Mixin selector
      named setInitialFocus Lnet/minecraft/client/gui/screen/Screen;setInitialFocus()V
      intermediary method_56131 Lnet/minecraft/class_437;method_56131()V
      official aG_ Lftx;aG_()V
    • resize

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

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

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

      private void updateAddButton()
      Mappings:
      Namespace Name Mixin selector
      named updateAddButton Lnet/minecraft/client/gui/screen/multiplayer/AddServerScreen;updateAddButton()V
      intermediary method_36223 Lnet/minecraft/class_422;method_36223()V
      official E Lftf;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 Lfpi;a(Lfnr;IIF)V