Class RealmsGenericErrorScreen

All Implemented Interfaces:
Drawable, Element, ParentElement, TickableElement

@Environment(CLIENT)
public class RealmsGenericErrorScreen
extends RealmsScreen
  • Field Details

    • parent

      private final Screen parent
    • line1

      private Text line1
    • line2

      private Text line2
  • Constructor Details

    • RealmsGenericErrorScreen

      public RealmsGenericErrorScreen​(RealmsServiceException realmsServiceException, Screen parent)
    • RealmsGenericErrorScreen

      public RealmsGenericErrorScreen​(Text line2, Screen parent)
    • RealmsGenericErrorScreen

      public RealmsGenericErrorScreen​(Text line1, Text line2, Screen parent)
  • Method Details

    • errorMessage

      private void errorMessage​(RealmsServiceException realmsServiceException)
    • errorMessage

      private void errorMessage​(Text line2)
    • errorMessage

      private void errorMessage​(Text line1, Text line2)
    • init

      public 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