Class DatapackLoadFailureScreen

All Implemented Interfaces:
ContainerEventHandler, GuiEventListener, Renderable, TabOrderedElement

public class DatapackLoadFailureScreen extends Screen
  • Field Details

    • message

      private MultiLineLabel message
    • cancelCallback

      private final Runnable cancelCallback
    • safeModeCallback

      private final Runnable safeModeCallback
  • Constructor Details

    • DatapackLoadFailureScreen

      public DatapackLoadFailureScreen(Runnable pCancelCallback, Runnable pSafeModeCallback)
  • Method Details

    • 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