Class DeathScreen

All Implemented Interfaces:
ContainerEventHandler, GuiEventListener, Renderable, TabOrderedElement

public class DeathScreen extends Screen
  • Field Details

    • DRAFT_REPORT_SPRITE

      private static final ResourceLocation DRAFT_REPORT_SPRITE
    • delayTicker

      private int delayTicker
    • causeOfDeath

      private final Component causeOfDeath
    • hardcore

      private final boolean hardcore
    • deathScore

      private Component deathScore
    • exitButtons

      private final List<Button> exitButtons
    • exitToTitleButton

      @Nullable private Button exitToTitleButton
  • Constructor Details

    • DeathScreen

      public DeathScreen(@Nullable Component p_95911_, boolean p_95912_)
  • Method Details

    • init

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

      public boolean shouldCloseOnEsc()
      Overrides:
      shouldCloseOnEsc in class Screen
    • handleExitToTitleScreen

      private void handleExitToTitleScreen()
    • exitToTitleScreen

      private void exitToTitleScreen()
    • render

      public void render(GuiGraphics p_283488_, int p_283551_, int p_283002_, float p_281981_)
      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
    • renderBackground

      public void renderBackground(GuiGraphics p_296411_, int p_295765_, int p_295221_, float p_295625_)
      Overrides:
      renderBackground in class Screen
    • renderDeathBackground

      static void renderDeathBackground(GuiGraphics p_339647_, int p_339641_, int p_339673_)
    • getClickedComponentStyleAt

      @Nullable private Style getClickedComponentStyleAt(int p_95918_)
    • mouseClicked

      public boolean mouseClicked(double p_95914_, double p_95915_, int p_95916_)
    • isPauseScreen

      public boolean isPauseScreen()
      Overrides:
      isPauseScreen in class Screen
    • tick

      public void tick()
      Overrides:
      tick in class Screen
    • setButtonsActive

      private void setButtonsActive(boolean p_273413_)