Class DirectJoinServerScreen

All Implemented Interfaces:
ContainerEventHandler, GuiEventListener, Renderable, TabOrderedElement

public class DirectJoinServerScreen extends Screen
  • Field Details

    • ENTER_IP_LABEL

      private static final Component ENTER_IP_LABEL
    • selectButton

      private Button selectButton
    • serverData

      private final ServerData serverData
    • ipEdit

      private EditBox ipEdit
    • callback

      private final it.unimi.dsi.fastutil.booleans.BooleanConsumer callback
    • lastScreen

      private final Screen lastScreen
  • Constructor Details

    • DirectJoinServerScreen

      public DirectJoinServerScreen(Screen p_95960_, it.unimi.dsi.fastutil.booleans.BooleanConsumer p_95961_, ServerData p_95962_)
  • Method Details

    • keyPressed

      public boolean keyPressed(int pKeyCode, int pScanCode, int pModifiers)
      Description copied from class: Screen
      Called when a keyboard key is pressed within the GUI element.

      Specified by:
      keyPressed in interface ContainerEventHandler
      Specified by:
      keyPressed in interface GuiEventListener
      Overrides:
      keyPressed in class Screen
      Parameters:
      pKeyCode - the key code of the pressed key.
      pScanCode - the scan code of the pressed key.
      pModifiers - the keyboard modifiers.
      Returns:
      true if the event is consumed, false otherwise.
    • init

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

      protected void setInitialFocus()
      Overrides:
      setInitialFocus in class Screen
    • resize

      public void resize(Minecraft pMinecraft, int pWidth, int pHeight)
      Overrides:
      resize in class Screen
    • onSelect

      private void onSelect()
    • onClose

      public void onClose()
      Overrides:
      onClose in class Screen
    • removed

      public void removed()
      Overrides:
      removed in class Screen
    • updateSelectButtonStatus

      private void updateSelectButtonStatus()
    • 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.