Class ConnectScreen

All Implemented Interfaces:
Drawable, Element, ParentElement

@Environment(CLIENT) public class ConnectScreen extends Screen
The connection screen is used to initiate a connection to a remote server. This is only used when connecting over LAN or to a remote dedicated server.
Mappings:
Namespace Name
official ejh
intermediary net/minecraft/class_412
named net/minecraft/client/gui/screen/ConnectScreen
  • Field Details

    • CONNECTOR_THREADS_COUNT

      private static final AtomicInteger CONNECTOR_THREADS_COUNT
      Mappings:
      Namespace Name Mixin selector
      official b Lejh;b:Ljava/util/concurrent/atomic/AtomicInteger;
      intermediary field_2408 Lnet/minecraft/class_412;field_2408:Ljava/util/concurrent/atomic/AtomicInteger;
      named CONNECTOR_THREADS_COUNT Lnet/minecraft/client/gui/screen/ConnectScreen;CONNECTOR_THREADS_COUNT:Ljava/util/concurrent/atomic/AtomicInteger;
    • LOGGER

      static final org.slf4j.Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      official c Lejh;c:Lorg/slf4j/Logger;
      intermediary field_2410 Lnet/minecraft/class_412;field_2410:Lorg/slf4j/Logger;
      named LOGGER Lnet/minecraft/client/gui/screen/ConnectScreen;LOGGER:Lorg/slf4j/Logger;
    • NARRATOR_INTERVAL

      private static final long NARRATOR_INTERVAL
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official n Lejh;n:J
      intermediary field_32238 Lnet/minecraft/class_412;field_32238:J
      named NARRATOR_INTERVAL Lnet/minecraft/client/gui/screen/ConnectScreen;NARRATOR_INTERVAL:J
    • BLOCKED_HOST_TEXT

      public static final Text BLOCKED_HOST_TEXT
      Mappings:
      Namespace Name Mixin selector
      official a Lejh;a:Lrm;
      intermediary field_33736 Lnet/minecraft/class_412;field_33736:Lnet/minecraft/class_2561;
      named BLOCKED_HOST_TEXT Lnet/minecraft/client/gui/screen/ConnectScreen;BLOCKED_HOST_TEXT:Lnet/minecraft/text/Text;
    • connection

      @Nullable volatile @Nullable ClientConnection connection
      The client connection to the remote server. This is not used when connecting to the client's own integrated server.
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official o Lejh;o:Lqv;
      intermediary field_2411 Lnet/minecraft/class_412;field_2411:Lnet/minecraft/class_2535;
      named connection Lnet/minecraft/client/gui/screen/ConnectScreen;connection:Lnet/minecraft/network/ClientConnection;
    • connectingCancelled

      volatile boolean connectingCancelled
      Mappings:
      Namespace Name Mixin selector
      official p Lejh;p:Z
      intermediary field_2409 Lnet/minecraft/class_412;field_2409:Z
      named connectingCancelled Lnet/minecraft/client/gui/screen/ConnectScreen;connectingCancelled:Z
    • parent

      final Screen parent
      Mappings:
      Namespace Name Mixin selector
      official q Lejh;q:Lekj;
      intermediary field_2412 Lnet/minecraft/class_412;field_2412:Lnet/minecraft/class_437;
      named parent Lnet/minecraft/client/gui/screen/ConnectScreen;parent:Lnet/minecraft/client/gui/screen/Screen;
    • status

      private Text status
      Mappings:
      Namespace Name Mixin selector
      official r Lejh;r:Lrm;
      intermediary field_2413 Lnet/minecraft/class_412;field_2413:Lnet/minecraft/class_2561;
      named status Lnet/minecraft/client/gui/screen/ConnectScreen;status:Lnet/minecraft/text/Text;
    • lastNarrationTime

      private long lastNarrationTime
      Mappings:
      Namespace Name Mixin selector
      official s Lejh;s:J
      intermediary field_19097 Lnet/minecraft/class_412;field_19097:J
      named lastNarrationTime Lnet/minecraft/client/gui/screen/ConnectScreen;lastNarrationTime:J
  • Constructor Details

    • ConnectScreen

      private ConnectScreen(Screen parent)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lejh;<init>(Lekj;)V
      intermediary <init> Lnet/minecraft/class_412;<init>(Lnet/minecraft/class_437;)V
      named <init> Lnet/minecraft/client/gui/screen/ConnectScreen;<init>(Lnet/minecraft/client/gui/screen/Screen;)V
  • Method Details

    • connect

      public static void connect(Screen screen, MinecraftClient client, ServerAddress address, @Nullable @Nullable ServerInfo info)
      Mappings:
      Namespace Name Mixin selector
      official a Lejh;a(Lekj;Leev;Leub;Lets;)V
      intermediary method_36877 Lnet/minecraft/class_412;method_36877(Lnet/minecraft/class_437;Lnet/minecraft/class_310;Lnet/minecraft/class_639;Lnet/minecraft/class_642;)V
      named connect Lnet/minecraft/client/gui/screen/ConnectScreen;connect(Lnet/minecraft/client/gui/screen/Screen;Lnet/minecraft/client/MinecraftClient;Lnet/minecraft/client/network/ServerAddress;Lnet/minecraft/client/network/ServerInfo;)V
    • connect

      private void connect(MinecraftClient client, ServerAddress address)
      Mappings:
      Namespace Name Mixin selector
      official a Lejh;a(Leev;Leub;)V
      intermediary method_2130 Lnet/minecraft/class_412;method_2130(Lnet/minecraft/class_310;Lnet/minecraft/class_639;)V
      named connect Lnet/minecraft/client/gui/screen/ConnectScreen;connect(Lnet/minecraft/client/MinecraftClient;Lnet/minecraft/client/network/ServerAddress;)V
    • setStatus

      private void setStatus(Text status)
      Mappings:
      Namespace Name Mixin selector
      official a Lejh;a(Lrm;)V
      intermediary method_2131 Lnet/minecraft/class_412;method_2131(Lnet/minecraft/class_2561;)V
      named setStatus Lnet/minecraft/client/gui/screen/ConnectScreen;setStatus(Lnet/minecraft/text/Text;)V
    • 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
    • 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 ag_ Lekj;ag_()Z
      intermediary method_25422 Lnet/minecraft/class_437;method_25422()Z
      named shouldCloseOnEsc Lnet/minecraft/client/gui/screen/Screen;shouldCloseOnEsc()Z
    • 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
    • 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