Class JoinMultiplayerScreen

All Implemented Interfaces:
ContainerEventHandler, GuiEventListener, Renderable, TabOrderedElement

public class JoinMultiplayerScreen extends Screen
  • Field Details

  • Constructor Details

    • JoinMultiplayerScreen

      public JoinMultiplayerScreen(Screen lastScreen)
  • Method Details

    • init

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

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

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

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

      private void refreshServerList()
    • deleteCallback

      private void deleteCallback(boolean confirmed)
    • editServerCallback

      private void editServerCallback(boolean confirmed)
    • addServerCallback

      private void addServerCallback(boolean confirmed)
    • directJoinCallback

      private void directJoinCallback(boolean confirmed)
    • keyPressed

      public boolean keyPressed(int keyCode, int scanCode, int modifiers)
      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:
      keyCode - the key code of the pressed key.
      scanCode - the scan code of the pressed key.
      modifiers - the keyboard modifiers.
      Returns:
      true if the event is consumed, false otherwise.
    • render

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

      public void joinSelectedServer()
    • join

      private void join(ServerData server)
    • setSelected

      public void setSelected(ServerSelectionList.Entry selected)
    • onSelectedChange

      protected void onSelectedChange()
    • getPinger

      public ServerStatusPinger getPinger()
    • getServers

      public ServerList getServers()