Class JoinMultiplayerScreen

All Implemented Interfaces:
ContainerEventHandler, GuiEventListener, Renderable, TabOrderedElement

public class JoinMultiplayerScreen extends Screen
  • Field Details

  • Constructor Details

    • JoinMultiplayerScreen

      public JoinMultiplayerScreen(Screen pLastScreen)
  • 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 pConfirmed)
    • editServerCallback

      private void editServerCallback(boolean pConfirmed)
    • addServerCallback

      private void addServerCallback(boolean pConfirmed)
    • directJoinCallback

      private void directJoinCallback(boolean pConfirmed)
    • keyPressed

      public boolean keyPressed(int pKeyCode, int pScanCode, int pModifiers)
      Description copied from interface: ContainerEventHandler
      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.
    • render

      public void render(GuiGraphics p_281617_, int p_281629_, int p_281983_, float p_283431_)
      Description copied from class: Screen
      Neo: mixins targeting this method won't fire for container screens as AbstractContainerScreen.render(net.minecraft.client.gui.GuiGraphics, int, int, float) replicates this method in place of a super call to insert an event
      Specified by:
      render in interface Renderable
      Overrides:
      render in class Screen
      Parameters:
      p_281617_ - the GuiGraphics object used for rendering.
      p_281629_ - the x-coordinate of the mouse cursor.
      p_281983_ - the y-coordinate of the mouse cursor.
      p_283431_ - the partial tick time.
    • joinSelectedServer

      public void joinSelectedServer()
    • join

      private void join(ServerData pServer)
    • setSelected

      public void setSelected(ServerSelectionList.Entry pSelected)
    • onSelectedChange

      protected void onSelectedChange()
    • getPinger

      public ServerStatusPinger getPinger()
    • getServers

      public ServerList getServers()