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 MultilineText noticeLines
    • buttonString

      protected final Text buttonString
    • field_2347

      private int field_2347
  • 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
    • tick

      public void tick()
      Specified by:
      tick in interface TickableElement
      Overrides:
      tick in class Screen