Class DeathScreen

All Implemented Interfaces:
IGuiEventListener, INestedGuiEventHandler, IRenderable, IScreen

public class DeathScreen extends Screen
  • Field Details

    • delayTicker

      private int delayTicker
    • causeOfDeath

      private final ITextComponent causeOfDeath
    • hardcore

      private final boolean hardcore
    • deathScore

      private ITextComponent deathScore
  • Constructor Details

    • DeathScreen

      public DeathScreen(@Nullable ITextComponent p_i51118_1_, boolean p_i51118_2_)
  • Method Details

    • init

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

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

      private void confirmResult(boolean p_213022_1_)
    • exitToTitleScreen

      private void exitToTitleScreen()
    • render

      public void render(MatrixStack p_230430_1_, int p_230430_2_, int p_230430_3_, float p_230430_4_)
      Specified by:
      render in interface IRenderable
      Overrides:
      render in class Screen
    • getClickedComponentStyleAt

      @Nullable private Style getClickedComponentStyleAt(int p_238623_1_)
    • mouseClicked

      public boolean mouseClicked(double p_231044_1_, double p_231044_3_, int p_231044_5_)
    • isPauseScreen

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

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