Package net.minecraft.client.gui.screen
Class DeathScreen
java.lang.Object
net.minecraft.client.gui.DrawableHelper
net.minecraft.client.gui.AbstractParentElement
net.minecraft.client.gui.screen.Screen
net.minecraft.client.gui.screen.DeathScreen
- All Implemented Interfaces:
- Drawable,- Element,- ParentElement
- Mappings:
- Namespace - Name - official - ekn- intermediary - net/minecraft/class_418- named - net/minecraft/client/gui/screen/DeathScreen
- 
Nested Class SummaryNested classes/interfaces inherited from class net.minecraft.client.gui.screen.ScreenScreen.SelectedElementNarrationData
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final List<ButtonWidget>private final booleanprivate final Textprivate Textprivate intFields inherited from class net.minecraft.client.gui.screen.Screenclient, height, itemRenderer, passEvents, textRenderer, title, widthFields inherited from class net.minecraft.client.gui.DrawableHelperGUI_ICONS_TEXTURE, OPTIONS_BACKGROUND_TEXTURE, STATS_ICON_TEXTUREFields inherited from interface net.minecraft.client.gui.ElementMAX_DOUBLE_CLICK_INTERVAL
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptiongetTextComponentUnderMouse(int mouseX) protected voidinit()Called when a screen should be initialized.booleanmouseClicked(double mouseX, double mouseY, int button) Callback for when a mouse button down event has been captured.private voidonConfirmQuit(boolean quit) private voidvoidrender(MatrixStack matrices, int mouseX, int mouseY, float delta) booleanChecks whether this screen should be closed when the escape key is pressed.booleanvoidtick()Methods inherited from class net.minecraft.client.gui.screen.ScreenaddDrawable, addDrawableChild, addElementNarrations, addScreenNarrations, addSelectableChild, applyKeyPressNarratorDelay, applyMouseMoveNarratorDelay, applyMousePressScrollNarratorDelay, applyNarratorModeChangeDelay, children, clearAndInit, clearChildren, close, filesDragged, findSelectedElementData, getNarratedTitle, getTitle, getTooltipFromItem, handleTextClick, hasAltDown, hasControlDown, hasShiftDown, hide, init, insertText, isCopy, isCut, isMouseOver, isPaste, isSelectAll, isValidCharacterForName, keyPressed, narrateScreenIfNarrationEnabled, remove, removed, renderBackground, renderBackground, renderBackgroundTexture, renderOrderedTooltip, renderTextHoverEffect, renderTooltip, renderTooltip, renderTooltip, renderTooltip, resize, updateNarrator, wrapScreenErrorMethods inherited from class net.minecraft.client.gui.AbstractParentElementgetFocused, isDragging, setDragging, setFocusedMethods inherited from class net.minecraft.client.gui.DrawableHelperdisableScissor, drawCenteredText, drawCenteredText, drawCenteredTextWithShadow, drawHorizontalLine, drawSprite, drawStringWithShadow, drawTexture, drawTexture, drawTexture, drawTexture, drawTextWithShadow, drawVerticalLine, drawWithOutline, drawWithShadow, enableScissor, fill, fillGradient, fillGradient, fillGradient, getZOffset, setZOffsetMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.client.gui.ElementmouseMovedMethods inherited from interface net.minecraft.client.gui.ParentElementchangeFocus, charTyped, focusOn, hoveredElement, keyReleased, mouseDragged, mouseReleased, mouseScrolled, setInitialFocus
- 
Field Details- 
ticksSinceDeathprivate int ticksSinceDeath- Mappings:
- Namespace - Name - Mixin selector - official - a- Lekn;a:I- intermediary - field_2451- Lnet/minecraft/class_418;field_2451:I- named - ticksSinceDeath- Lnet/minecraft/client/gui/screen/DeathScreen;ticksSinceDeath:I
 
- 
message- Mappings:
- Namespace - Name - Mixin selector - official - b- Lekn;b:Lrq;- 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;
 
- 
isHardcoreprivate final boolean isHardcore- Mappings:
- Namespace - Name - Mixin selector - official - c- Lekn;c:Z- intermediary - field_18974- Lnet/minecraft/class_418;field_18974:Z- named - isHardcore- Lnet/minecraft/client/gui/screen/DeathScreen;isHardcore:Z
 
- 
scoreText- Mappings:
- Namespace - Name - Mixin selector - official - n- Lekn;n:Lrq;- 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- Mappings:
- Namespace - Name - Mixin selector - official - o- Lekn;o: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;
 
 
- 
- 
Constructor Details- 
DeathScreen- Mappings:
- Namespace - Name - Mixin selector - official - <init>- Lekn;<init>(Lrq;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- 
initprotected void init()Called when a screen should be initialized.This method is called when this screen is opened or resized. 
- 
shouldCloseOnEscpublic boolean shouldCloseOnEsc()Checks whether this screen should be closed when the escape key is pressed.- Overrides:
- shouldCloseOnEscin class- Screen
- Mappings:
- Namespace - Name - Mixin selector - official - af_- Lelm;af_()Z- intermediary - method_25422- Lnet/minecraft/class_437;method_25422()Z- named - shouldCloseOnEsc- Lnet/minecraft/client/gui/screen/Screen;shouldCloseOnEsc()Z
 
- 
onConfirmQuitprivate void onConfirmQuit(boolean quit) - Mappings:
- Namespace - Name - Mixin selector - official - c- Lekn;c(Z)V- intermediary - method_20373- Lnet/minecraft/class_418;method_20373(Z)V- named - onConfirmQuit- Lnet/minecraft/client/gui/screen/DeathScreen;onConfirmQuit(Z)V
 
- 
quitLevelprivate void quitLevel()- Mappings:
- Namespace - Name - Mixin selector - official - g- Lekn;g()V- intermediary - method_22364- Lnet/minecraft/class_418;method_22364()V- named - quitLevel- Lnet/minecraft/client/gui/screen/DeathScreen;quitLevel()V
 
- 
render- Specified by:
- renderin interface- Drawable
- Overrides:
- renderin class- Screen
- Mappings:
- Namespace - Name - Mixin selector - official - a- Leio;a(Leaq;IIF)V- intermediary - method_25394- Lnet/minecraft/class_4068;method_25394(Lnet/minecraft/class_4587;IIF)V- named - render- Lnet/minecraft/client/gui/Drawable;render(Lnet/minecraft/client/util/math/MatrixStack;IIF)V
 
- 
getTextComponentUnderMouse- Mappings:
- Namespace - Name - Mixin selector - official - a- Lekn;a(I)Lsj;- 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;
 
- 
mouseClickedpublic 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 inGLFWclass.- Parameters:
- mouseX- the X coordinate of the mouse
- mouseY- the Y coordinate of the mouse
- button- the mouse button number
- Returns:
- trueto indicate that the event handling is successful/valid
- See Also:
- Mappings:
- Namespace - Name - Mixin selector - official - a- Leir;a(DDI)Z- intermediary - method_25402- Lnet/minecraft/class_364;method_25402(DDI)Z- named - mouseClicked- Lnet/minecraft/client/gui/Element;mouseClicked(DDI)Z
 
- 
shouldPausepublic boolean shouldPause()- Overrides:
- shouldPausein class- Screen
- Mappings:
- Namespace - Name - Mixin selector - official - h- Lelm;h()Z- intermediary - method_25421- Lnet/minecraft/class_437;method_25421()Z- named - shouldPause- Lnet/minecraft/client/gui/screen/Screen;shouldPause()Z
 
- 
tickpublic void tick()
 
-