Class AlertScreen

All Implemented Interfaces:
ContainerEventHandler, GuiEventListener, Renderable, TabOrderedElement

public class AlertScreen extends Screen
  • Field Details

    • LABEL_Y

      private static final int LABEL_Y
      See Also:
    • messageText

      private final Component messageText
    • message

      private MultiLineLabel message
    • callback

      private final Runnable callback
    • okButton

      private final Component okButton
    • shouldCloseOnEsc

      private final boolean shouldCloseOnEsc
  • Constructor Details

  • Method Details

    • getNarrationMessage

      public Component getNarrationMessage()
      Overrides:
      getNarrationMessage in class Screen
    • init

      protected void init()
      Overrides:
      init in class Screen
    • render

      public void render(GuiGraphics pGuiGraphics, int pMouseX, int pMouseY, float pPartialTick)
      Renders the graphical user interface (GUI) element.
      Specified by:
      render in interface Renderable
      Overrides:
      render in class Screen
      Parameters:
      pGuiGraphics - the GuiGraphics object used for rendering.
      pMouseX - the x-coordinate of the mouse cursor.
      pMouseY - the y-coordinate of the mouse cursor.
      pPartialTick - the partial tick time.
    • shouldCloseOnEsc

      public boolean shouldCloseOnEsc()
      Overrides:
      shouldCloseOnEsc in class Screen