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 p_283519_, int p_282196_, int p_283357_, float p_283026_)
      Description copied from class: Screen
      Neo: mixins targeting this method won't fire for container screens as AbstractContainerScreen.render(net.minecraft.client.gui.GuiGraphics, int, int, float) replicates this method in place of a super call to insert an event
      Specified by:
      render in interface Renderable
      Overrides:
      render in class Screen
      Parameters:
      p_283519_ - the GuiGraphics object used for rendering.
      p_282196_ - the x-coordinate of the mouse cursor.
      p_283357_ - the y-coordinate of the mouse cursor.
      p_283026_ - the partial tick time.
    • shouldCloseOnEsc

      public boolean shouldCloseOnEsc()
      Overrides:
      shouldCloseOnEsc in class Screen