Class NoticeScreen

All Implemented Interfaces:
Drawable, Element, ParentElement, TickableElement

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

    • actionHandler

      private final Runnable actionHandler
    • notice

      protected final Text notice
    • noticeLines

      private class_5489 noticeLines
    • buttonString

      protected final Text buttonString
  • Constructor Details

    • NoticeScreen

      public NoticeScreen​(Runnable actionHandler, Text title, Text notice)
    • NoticeScreen

      public NoticeScreen​(Runnable actionHandler, Text title, Text notice, Text text)
  • 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