Class ManageServerScreen

All Implemented Interfaces:
ContainerEventHandler, GuiEventListener, Renderable, TabOrderedElement

public class ManageServerScreen extends Screen
  • Field Details

    • NAME_LABEL

      private static final Component NAME_LABEL
    • IP_LABEL

      private static final Component IP_LABEL
    • DEFAULT_SERVER_NAME

      private static final Component DEFAULT_SERVER_NAME
    • addButton

      private Button addButton
    • callback

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

      private final ServerData serverData
    • ipEdit

      private EditBox ipEdit
    • nameEdit

      private EditBox nameEdit
    • lastScreen

      private final Screen lastScreen
  • Constructor Details

    • ManageServerScreen

      public ManageServerScreen(Screen lastScreen, Component title, it.unimi.dsi.fastutil.booleans.BooleanConsumer callback, ServerData serverData)
  • Method Details

    • 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
    • onAdd

      private void onAdd()
    • onClose

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

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