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 p_96650_)
  • Method Details

    • init

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

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

      @Nullable private Component tryParsePort(String p_259426_)
    • render

      public void render(GuiGraphics p_281738_, int p_96653_, int p_96654_, float p_96655_)
      Specified by:
      render in interface Renderable
      Overrides:
      render in class Screen