Class ConnectScreen

All Implemented Interfaces:
ContainerEventHandler, GuiEventListener, Renderable, TabOrderedElement

public class ConnectScreen extends Screen
  • Field Details

    • UNIQUE_THREAD_ID

      private static final AtomicInteger UNIQUE_THREAD_ID
    • LOGGER

      static final org.slf4j.Logger LOGGER
    • NARRATION_DELAY_MS

      private static final long NARRATION_DELAY_MS
      See Also:
    • ABORT_CONNECTION

      public static final Component ABORT_CONNECTION
    • UNKNOWN_HOST_MESSAGE

      public static final Component UNKNOWN_HOST_MESSAGE
    • connection

      @Nullable volatile Connection connection
    • channelFuture

      @Nullable io.netty.channel.ChannelFuture channelFuture
    • aborted

      volatile boolean aborted
    • parent

      final Screen parent
    • status

      private Component status
    • lastNarration

      private long lastNarration
    • connectFailedTitle

      final Component connectFailedTitle
  • Constructor Details

    • ConnectScreen

      private ConnectScreen(Screen pParent, Component pConnectFailedTitle)
  • Method Details

    • startConnecting

      public static void startConnecting(Screen pParent, Minecraft pMinecraft, ServerAddress pServerAddress, ServerData pServerData, boolean pIsQuickPlay, @Nullable TransferState pTransferState)
    • connect

      private void connect(Minecraft pMinecraft, ServerAddress pServerAddress, ServerData pServerData, @Nullable TransferState pTransferState)
    • updateStatus

      private void updateStatus(Component pStatus)
    • tick

      public void tick()
      Overrides:
      tick in class Screen
    • shouldCloseOnEsc

      public boolean shouldCloseOnEsc()
      Overrides:
      shouldCloseOnEsc in class Screen
    • init

      protected void init()
      Overrides:
      init in class Screen
    • render

      public void render(GuiGraphics pGuiGraphics, int pMouseX, int pMouseY, float pPartialTick)
      Renders the graphical user interface (GUI) element.
      Specified by:
      render in interface Renderable
      Overrides:
      render in class Screen
      Parameters:
      pGuiGraphics - the GuiGraphics object used for rendering.
      pMouseX - the x-coordinate of the mouse cursor.
      pMouseY - the y-coordinate of the mouse cursor.
      pPartialTick - the partial tick time.