Class DeathScreen

All Implemented Interfaces:
Drawable, Element, Navigable, ParentElement

@Environment(CLIENT) public class DeathScreen extends Screen
Mappings:
Namespace Name
official exj
intermediary net/minecraft/class_418
named net/minecraft/client/gui/screen/DeathScreen
  • Field Details

    • DRAFT_REPORT_ICON_TEXTURE

      private static final Identifier DRAFT_REPORT_ICON_TEXTURE
      Mappings:
      Namespace Name Mixin selector
      official a Lexj;a:Laew;
      intermediary field_45407 Lnet/minecraft/class_418;field_45407:Lnet/minecraft/class_2960;
      named DRAFT_REPORT_ICON_TEXTURE Lnet/minecraft/client/gui/screen/DeathScreen;DRAFT_REPORT_ICON_TEXTURE:Lnet/minecraft/util/Identifier;
    • ticksSinceDeath

      private int ticksSinceDeath
      Mappings:
      Namespace Name Mixin selector
      official b Lexj;b:I
      intermediary field_2451 Lnet/minecraft/class_418;field_2451:I
      named ticksSinceDeath Lnet/minecraft/client/gui/screen/DeathScreen;ticksSinceDeath:I
    • message

      private final Text message
      Mappings:
      Namespace Name Mixin selector
      official c Lexj;c:Ltl;
      intermediary field_2450 Lnet/minecraft/class_418;field_2450:Lnet/minecraft/class_2561;
      named message Lnet/minecraft/client/gui/screen/DeathScreen;message:Lnet/minecraft/text/Text;
    • isHardcore

      private final boolean isHardcore
      Mappings:
      Namespace Name Mixin selector
      official k Lexj;k:Z
      intermediary field_18974 Lnet/minecraft/class_418;field_18974:Z
      named isHardcore Lnet/minecraft/client/gui/screen/DeathScreen;isHardcore:Z
    • scoreText

      private Text scoreText
      Mappings:
      Namespace Name Mixin selector
      official l Lexj;l:Ltl;
      intermediary field_26537 Lnet/minecraft/class_418;field_26537:Lnet/minecraft/class_2561;
      named scoreText Lnet/minecraft/client/gui/screen/DeathScreen;scoreText:Lnet/minecraft/text/Text;
    • buttons

      private final List<ButtonWidget> buttons
      Mappings:
      Namespace Name Mixin selector
      official m Lexj;m:Ljava/util/List;
      intermediary field_33809 Lnet/minecraft/class_418;field_33809:Ljava/util/List;
      named buttons Lnet/minecraft/client/gui/screen/DeathScreen;buttons:Ljava/util/List;
    • titleScreenButton

      @Nullable private @Nullable ButtonWidget titleScreenButton
      Mappings:
      Namespace Name Mixin selector
      official n Lexj;n:Lesq;
      intermediary field_41684 Lnet/minecraft/class_418;field_41684:Lnet/minecraft/class_4185;
      named titleScreenButton Lnet/minecraft/client/gui/screen/DeathScreen;titleScreenButton:Lnet/minecraft/client/gui/widget/ButtonWidget;
  • Constructor Details

    • DeathScreen

      public DeathScreen(@Nullable @Nullable Text message, boolean isHardcore)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lexj;<init>(Ltl;Z)V
      intermediary <init> Lnet/minecraft/class_418;<init>(Lnet/minecraft/class_2561;Z)V
      named <init> Lnet/minecraft/client/gui/screen/DeathScreen;<init>(Lnet/minecraft/text/Text;Z)V
  • Method Details

    • init

      protected void init()
      Called when a screen should be initialized.

      This method is called when this screen is opened or resized.

      This should call Screen.setInitialFocus(net.minecraft.client.gui.Element) to set the element that is initially focused.

      Overrides:
      init in class Screen
      Mappings:
      Namespace Name Mixin selector
      official aH_ Leyk;aH_()V
      intermediary method_25426 Lnet/minecraft/class_437;method_25426()V
      named init Lnet/minecraft/client/gui/screen/Screen;init()V
    • shouldCloseOnEsc

      public boolean shouldCloseOnEsc()
      Checks whether this screen should be closed when the escape key is pressed.
      Overrides:
      shouldCloseOnEsc in class Screen
      Mappings:
      Namespace Name Mixin selector
      official ay_ Leyk;ay_()Z
      intermediary method_25422 Lnet/minecraft/class_437;method_25422()Z
      named shouldCloseOnEsc Lnet/minecraft/client/gui/screen/Screen;shouldCloseOnEsc()Z
    • onTitleScreenButtonClicked

      private void onTitleScreenButtonClicked()
      Mappings:
      Namespace Name Mixin selector
      official l Lexj;l()V
      intermediary method_47940 Lnet/minecraft/class_418;method_47940()V
      named onTitleScreenButtonClicked Lnet/minecraft/client/gui/screen/DeathScreen;onTitleScreenButtonClicked()V
    • quitLevel

      private void quitLevel()
      Mappings:
      Namespace Name Mixin selector
      official D Lexj;D()V
      intermediary method_22364 Lnet/minecraft/class_418;method_22364()V
      named quitLevel Lnet/minecraft/client/gui/screen/DeathScreen;quitLevel()V
    • render

      public void render(DrawContext context, int mouseX, int mouseY, float delta)
      Specified by:
      render in interface Drawable
      Overrides:
      render in class Screen
      Mappings:
      Namespace Name Mixin selector
      official a Lets;a(Lesf;IIF)V
      intermediary method_25394 Lnet/minecraft/class_4068;method_25394(Lnet/minecraft/class_332;IIF)V
      named render Lnet/minecraft/client/gui/Drawable;render(Lnet/minecraft/client/gui/DrawContext;IIF)V
    • renderBackground

      public void renderBackground(DrawContext context, int mouseX, int mouseY, float delta)
      Renders the background of this screen.

      If the client is in a world, renders the translucent background gradient. Otherwise renders the background texture.

      Overrides:
      renderBackground in class Screen
      Mappings:
      Namespace Name Mixin selector
      official b Leyk;b(Lesf;IIF)V
      intermediary method_25420 Lnet/minecraft/class_437;method_25420(Lnet/minecraft/class_332;IIF)V
      named renderBackground Lnet/minecraft/client/gui/screen/Screen;renderBackground(Lnet/minecraft/client/gui/DrawContext;IIF)V
    • getTextComponentUnderMouse

      @Nullable private @Nullable Style getTextComponentUnderMouse(int mouseX)
      Mappings:
      Namespace Name Mixin selector
      official a Lexj;a(I)Luh;
      intermediary method_2164 Lnet/minecraft/class_418;method_2164(I)Lnet/minecraft/class_2583;
      named getTextComponentUnderMouse Lnet/minecraft/client/gui/screen/DeathScreen;getTextComponentUnderMouse(I)Lnet/minecraft/text/Style;
    • mouseClicked

      public boolean mouseClicked(double mouseX, double mouseY, int button)
      Callback for when a mouse button down event has been captured. The button number is identified by the constants in GLFW class.
      Parameters:
      mouseX - the X coordinate of the mouse
      mouseY - the Y coordinate of the mouse
      button - the mouse button number
      Returns:
      true to indicate that the event handling is successful/valid
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Leuk;a(DDI)Z
      intermediary method_25402 Lnet/minecraft/class_364;method_25402(DDI)Z
      named mouseClicked Lnet/minecraft/client/gui/Element;mouseClicked(DDI)Z
    • shouldPause

      public boolean shouldPause()
      Overrides:
      shouldPause in class Screen
      Mappings:
      Namespace Name Mixin selector
      official j Leyk;j()Z
      intermediary method_25421 Lnet/minecraft/class_437;method_25421()Z
      named shouldPause Lnet/minecraft/client/gui/screen/Screen;shouldPause()Z
    • tick

      public void tick()
      Overrides:
      tick in class Screen
      Mappings:
      Namespace Name Mixin selector
      official c Leyk;c()V
      intermediary method_25393 Lnet/minecraft/class_437;method_25393()V
      named tick Lnet/minecraft/client/gui/screen/Screen;tick()V
    • setButtonsActive

      private void setButtonsActive(boolean active)
      Mappings:
      Namespace Name Mixin selector
      official c Lexj;c(Z)V
      intermediary method_49299 Lnet/minecraft/class_418;method_49299(Z)V
      named setButtonsActive Lnet/minecraft/client/gui/screen/DeathScreen;setButtonsActive(Z)V