Class OpenToLanScreen

All Implemented Interfaces:
Drawable, Element, ParentElement, TickableElement

@Environment(CLIENT)
public class OpenToLanScreen
extends Screen
  • Field Details

    • ALLOW_COMMANDS_TEXT

      private static final Text ALLOW_COMMANDS_TEXT
    • GAME_MODE_TEXT

      private static final Text GAME_MODE_TEXT
    • OTHER_PLAYERS_TEXT

      private static final Text OTHER_PLAYERS_TEXT
    • parent

      private final Screen parent
    • gameMode

      private GameMode gameMode
    • allowCommands

      private boolean allowCommands
  • Constructor Details

    • OpenToLanScreen

      public OpenToLanScreen​(Screen parent)
  • Method Details

    • init

      protected void init()
      Called when a screen should be initialized.

      This method is called when this screen is opened or resized.

      Overrides:
      init in class Screen
    • render

      public void render​(MatrixStack matrices, int mouseX, int mouseY, float delta)
      Specified by:
      render in interface Drawable
      Overrides:
      render in class Screen