Class DisconnectedScreen

All Implemented Interfaces:
Drawable, Element, ParentElement, TickableElement

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

    • reason

      private final Text reason
    • reasonFormatted

      private class_5489 reasonFormatted
    • parent

      private final Screen parent
    • reasonHeight

      private int reasonHeight
  • Constructor Details

    • DisconnectedScreen

      public DisconnectedScreen​(Screen parent, Text text, Text reason)
  • Method Details

    • shouldCloseOnEsc

      public boolean shouldCloseOnEsc()
      Checks whether this screen should be closed when the escape key is pressed.
      Overrides:
      shouldCloseOnEsc in class Screen
    • 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