Class DeathScreen

All Implemented Interfaces:
ContainerEventHandler, GuiEventListener, Widget

public class DeathScreen extends Screen
  • Field Details

    • delayTicker

      private int delayTicker
    • causeOfDeath

      private final Component causeOfDeath
    • hardcore

      private final boolean hardcore
    • deathScore

      private Component deathScore
    • exitButtons

      private final List<Button> exitButtons
  • 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
    • confirmResult

      private void confirmResult(boolean p_95932_)
    • exitToTitleScreen

      private void exitToTitleScreen()
    • render

      public void render(PoseStack p_95920_, int p_95921_, int p_95922_, float p_95923_)
      Specified by:
      render in interface Widget
      Overrides:
      render in class Screen
    • 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