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 lastScreen, it.unimi.dsi.fastutil.booleans.BooleanConsumer callback, ServerData serverData)
  • Method Details

    • keyPressed

      public boolean keyPressed(KeyEvent event)
      Specified by:
      keyPressed in interface ContainerEventHandler
      Specified by:
      keyPressed in interface GuiEventListener
      Overrides:
      keyPressed in class Screen
    • init

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

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

      public void resize(int width, int height)
      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 graphics, int mouseX, int mouseY, float a)
      Description copied from interface: Renderable
      Renders the graphical user interface (GUI) element.
      Specified by:
      render in interface Renderable
      Overrides:
      render in class Screen
      Parameters:
      graphics - the GuiGraphics object used for rendering.
      mouseX - the x-coordinate of the mouse cursor.
      mouseY - the y-coordinate of the mouse cursor.
      a - the partial tick time.