Class ShareToLanScreen

All Implemented Interfaces:
ContainerEventHandler, GuiEventListener, Renderable, TabOrderedElement

public class ShareToLanScreen extends Screen
  • Field Details

    • PORT_LOWER_BOUND

      private static final int PORT_LOWER_BOUND
      See Also:
    • PORT_HIGHER_BOUND

      private static final int PORT_HIGHER_BOUND
      See Also:
    • ALLOW_COMMANDS_LABEL

      private static final Component ALLOW_COMMANDS_LABEL
    • GAME_MODE_LABEL

      private static final Component GAME_MODE_LABEL
    • INFO_TEXT

      private static final Component INFO_TEXT
    • PORT_INFO_TEXT

      private static final Component PORT_INFO_TEXT
    • PORT_UNAVAILABLE

      private static final Component PORT_UNAVAILABLE
    • INVALID_PORT

      private static final Component INVALID_PORT
    • INVALID_PORT_COLOR

      private static final int INVALID_PORT_COLOR
      See Also:
    • lastScreen

      private final Screen lastScreen
    • gameMode

      private GameType gameMode
    • commands

      private boolean commands
    • port

      private int port
    • portEdit

      @Nullable private EditBox portEdit
  • Constructor Details

    • ShareToLanScreen

      public ShareToLanScreen(Screen pLastScreen)
  • Method Details

    • init

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

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

      @Nullable private Component tryParsePort(String pPort)
    • 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.