Class MultiplayerOptionsScreen

All Implemented Interfaces:
ContainerEventHandler, GuiEventListener, Renderable, TabOrderedElement

public class MultiplayerOptionsScreen 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:
    • TITLE

      private static final Component TITLE
    • ALLOW_COMMANDS_LABEL

      private static final Component ALLOW_COMMANDS_LABEL
    • GAME_MODE_LABEL

      private static final Component GAME_MODE_LABEL
    • 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
    • OTHER_PLAYERS_HEADER

      private static final Component OTHER_PLAYERS_HEADER
    • APPLY_CHANGES

      private static final Component APPLY_CHANGES
    • INWORLD_MENU_LIST_BACKGROUND

      private static final Identifier INWORLD_MENU_LIST_BACKGROUND
    • layout

      private final HeaderAndFooterLayout layout
    • lastScreen

      private final Screen lastScreen
    • wantedMultiplayerScope

      private MinecraftServer.MultiplayerScope wantedMultiplayerScope
    • gameMode

      private GameType gameMode
    • commands

      private boolean commands
    • port

      private int port
    • portValid

      private boolean portValid
    • applyChanges

      private @Nullable Button applyChanges
    • portEdit

      private @Nullable EditBox portEdit
    • portLabel

      private @Nullable StringWidget portLabel
    • initialMultiplayerScope

      private MinecraftServer.MultiplayerScope initialMultiplayerScope
    • initialGameMode

      private GameType initialGameMode
    • initialCommands

      private boolean initialCommands
    • initialPort

      private int initialPort
  • Constructor Details

    • MultiplayerOptionsScreen

      public MultiplayerOptionsScreen(Screen lastScreen)
  • Method Details

    • init

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

      private void updatePortControlsState()
    • setPortError

      private void setPortError(@Nullable Component errorMessage)
    • changeMultiplayerScope

      private void changeMultiplayerScope(IntegratedServer singleplayerServer)
    • updateApplyChangesActiveState

      private void updateApplyChangesActiveState()
    • portIsRequired

      private boolean portIsRequired()
    • lanPortChanged

      private boolean lanPortChanged()
    • hasSettingsChanges

      private boolean hasSettingsChanges()
    • publish

      private void publish(IntegratedServer singleplayerServer, MinecraftServer.MultiplayerScope scope)
    • sendPublishMessage

      private void sendPublishMessage(Component message)
    • repositionElements

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

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

      private @Nullable Component tryParsePort(String value)
    • extractBackground

      public void extractBackground(GuiGraphicsExtractor graphics, int mouseX, int mouseY, float a)
      Overrides:
      extractBackground in class Screen