Package net.minecraft.client.gui.screen
Class DeathScreen
java.lang.Object
net.minecraft.client.gui.AbstractParentElement
net.minecraft.client.gui.screen.Screen
net.minecraft.client.gui.screen.DeathScreen
- All Implemented Interfaces:
Drawable
,Element
,Navigable
,ParentElement
- Mappings:
Namespace Name named net/minecraft/client/gui/screen/DeathScreen
intermediary net/minecraft/class_418
official fmc
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.client.gui.screen.Screen
Screen.SelectedElementNarrationData
-
Field Summary
Modifier and TypeFieldDescriptionprivate final List
<ButtonWidget> private static final Identifier
private final boolean
private final Text
private Text
private int
private @Nullable ButtonWidget
Fields inherited from class net.minecraft.client.gui.screen.Screen
client, executor, FOOTER_SEPARATOR_TEXTURE, HEADER_SEPARATOR_TEXTURE, height, INWORLD_FOOTER_SEPARATOR_TEXTURE, INWORLD_HEADER_SEPARATOR_TEXTURE, MENU_BACKGROUND_TEXTURE, PANORAMA_RENDERER, ROTATING_PANORAMA_RENDERER, textRenderer, title, width
Fields inherited from interface net.minecraft.client.gui.Element
MAX_DOUBLE_CLICK_INTERVAL
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription(package private) static void
fillBackgroundGradient
(DrawContext context, int width, int height) getTextComponentUnderMouse
(int mouseX) protected void
init()
Called when a screen should be initialized.boolean
mouseClicked
(double mouseX, double mouseY, int button) Callback for when a mouse button down event has been captured.private void
private void
void
render
(DrawContext context, int mouseX, int mouseY, float delta) void
renderBackground
(DrawContext context, int mouseX, int mouseY, float delta) Renders the background of this screen.private void
setButtonsActive
(boolean active) boolean
Checks whether this screen should be closed when the escape key is pressed.boolean
void
tick()
Methods inherited from class net.minecraft.client.gui.screen.Screen
addDrawable, addDrawableChild, addElementNarrations, addScreenNarrations, addSelectableChild, applyBlur, applyKeyPressNarratorDelay, applyMouseMoveNarratorDelay, applyMousePressScrollNarratorDelay, applyNarratorModeChangeDelay, blur, children, clearAndInit, clearChildren, clearTooltip, close, filesDragged, findSelectedElementData, getMusic, getNarratedTitle, getNavigationFocus, getPanoramaTickDelta, getTitle, getTooltipFromItem, getUsageNarrationText, handleTextClick, hasAltDown, hasControlDown, hasShiftDown, hasUsageText, init, initTabNavigation, insertText, isCopy, isCut, isMouseOver, isPaste, isSelectAll, isValidCharacterForName, keyPressed, narrateScreenIfNarrationEnabled, onDisplayed, remove, removed, renderBackgroundTexture, renderDarkening, renderDarkening, renderInGameBackground, renderPanoramaBackground, renderWithTooltip, resize, setInitialFocus, setInitialFocus, setTooltip, setTooltip, setTooltip, setTooltip, switchFocus, updateNarrator, wrapScreenError
Methods inherited from class net.minecraft.client.gui.AbstractParentElement
getFocused, isDragging, setDragging, setFocused
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.client.gui.Element
mouseMoved
Methods inherited from interface net.minecraft.client.gui.navigation.Navigable
getNavigationOrder
Methods inherited from interface net.minecraft.client.gui.ParentElement
charTyped, getFocusedPath, getNavigationPath, hoveredElement, isFocused, keyReleased, mouseDragged, mouseReleased, mouseScrolled, setFocused
-
Field Details
-
DRAFT_REPORT_ICON_TEXTURE
- Mappings:
Namespace Name Mixin selector named DRAFT_REPORT_ICON_TEXTURE
Lnet/minecraft/client/gui/screen/DeathScreen;DRAFT_REPORT_ICON_TEXTURE:Lnet/minecraft/util/Identifier;
intermediary field_45407
Lnet/minecraft/class_418;field_45407:Lnet/minecraft/class_2960;
official a
Lfmc;a:Lalf;
-
ticksSinceDeath
private int ticksSinceDeath- Mappings:
Namespace Name Mixin selector named ticksSinceDeath
Lnet/minecraft/client/gui/screen/DeathScreen;ticksSinceDeath:I
intermediary field_2451
Lnet/minecraft/class_418;field_2451:I
official b
Lfmc;b:I
-
message
- Mappings:
Namespace Name Mixin selector named message
Lnet/minecraft/client/gui/screen/DeathScreen;message:Lnet/minecraft/text/Text;
intermediary field_2450
Lnet/minecraft/class_418;field_2450:Lnet/minecraft/class_2561;
official c
Lfmc;c:Lxp;
-
isHardcore
private final boolean isHardcore- Mappings:
Namespace Name Mixin selector named isHardcore
Lnet/minecraft/client/gui/screen/DeathScreen;isHardcore:Z
intermediary field_18974
Lnet/minecraft/class_418;field_18974:Z
official d
Lfmc;d:Z
-
scoreText
- Mappings:
Namespace Name Mixin selector named scoreText
Lnet/minecraft/client/gui/screen/DeathScreen;scoreText:Lnet/minecraft/text/Text;
intermediary field_26537
Lnet/minecraft/class_418;field_26537:Lnet/minecraft/class_2561;
official r
Lfmc;r:Lxp;
-
buttons
- Mappings:
Namespace Name Mixin selector named buttons
Lnet/minecraft/client/gui/screen/DeathScreen;buttons:Ljava/util/List;
intermediary field_33809
Lnet/minecraft/class_418;field_33809:Ljava/util/List;
official s
Lfmc;s:Ljava/util/List;
-
titleScreenButton
- Mappings:
Namespace Name Mixin selector named titleScreenButton
Lnet/minecraft/client/gui/screen/DeathScreen;titleScreenButton:Lnet/minecraft/client/gui/widget/ButtonWidget;
intermediary field_41684
Lnet/minecraft/class_418;field_41684:Lnet/minecraft/class_4185;
official u
Lfmc;u:Lfhf;
-
-
Constructor Details
-
DeathScreen
- Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/client/gui/screen/DeathScreen;<init>(Lnet/minecraft/text/Text;Z)V
intermediary <init>
Lnet/minecraft/class_418;<init>(Lnet/minecraft/class_2561;Z)V
official <init>
Lfmc;<init>(Lxp;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()
to set the element that is initially focused. -
shouldCloseOnEsc
public boolean shouldCloseOnEsc()Checks whether this screen should be closed when the escape key is pressed.- Overrides:
shouldCloseOnEsc
in classScreen
- Mappings:
Namespace Name Mixin selector named shouldCloseOnEsc
Lnet/minecraft/client/gui/screen/Screen;shouldCloseOnEsc()Z
intermediary method_25422
Lnet/minecraft/class_437;method_25422()Z
official aC_
Lfne;aC_()Z
-
onTitleScreenButtonClicked
private void onTitleScreenButtonClicked()- Mappings:
Namespace Name Mixin selector named onTitleScreenButtonClicked
Lnet/minecraft/client/gui/screen/DeathScreen;onTitleScreenButtonClicked()V
intermediary method_47940
Lnet/minecraft/class_418;method_47940()V
official m
Lfmc;m()V
-
quitLevel
private void quitLevel()- Mappings:
Namespace Name Mixin selector named quitLevel
Lnet/minecraft/client/gui/screen/DeathScreen;quitLevel()V
intermediary method_22364
Lnet/minecraft/class_418;method_22364()V
official E
Lfmc;E()V
-
render
- Specified by:
render
in interfaceDrawable
- Overrides:
render
in classScreen
- Mappings:
Namespace Name Mixin selector named render
Lnet/minecraft/client/gui/Drawable;render(Lnet/minecraft/client/gui/DrawContext;IIF)V
intermediary method_25394
Lnet/minecraft/class_4068;method_25394(Lnet/minecraft/class_332;IIF)V
official a
Lfii;a(Lfgs;IIF)V
-
renderBackground
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 classScreen
- Mappings:
Namespace Name Mixin selector named renderBackground
Lnet/minecraft/client/gui/screen/Screen;renderBackground(Lnet/minecraft/client/gui/DrawContext;IIF)V
intermediary method_25420
Lnet/minecraft/class_437;method_25420(Lnet/minecraft/class_332;IIF)V
official b
Lfne;b(Lfgs;IIF)V
-
fillBackgroundGradient
- Mappings:
Namespace Name Mixin selector named fillBackgroundGradient
Lnet/minecraft/client/gui/screen/DeathScreen;fillBackgroundGradient(Lnet/minecraft/client/gui/DrawContext;II)V
intermediary method_59546
Lnet/minecraft/class_418;method_59546(Lnet/minecraft/class_332;II)V
official a
Lfmc;a(Lfgs;II)V
-
getTextComponentUnderMouse
- Mappings:
Namespace Name Mixin selector named getTextComponentUnderMouse
Lnet/minecraft/client/gui/screen/DeathScreen;getTextComponentUnderMouse(I)Lnet/minecraft/text/Style;
intermediary method_2164
Lnet/minecraft/class_418;method_2164(I)Lnet/minecraft/class_2583;
official a
Lfmc;a(I)Lym;
-
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 inGLFW
class.- Parameters:
mouseX
- the X coordinate of the mousemouseY
- the Y coordinate of the mousebutton
- the mouse button number- Returns:
true
to indicate that the event handling is successful/valid- See Also:
- Mappings:
Namespace Name Mixin selector named mouseClicked
Lnet/minecraft/client/gui/Element;mouseClicked(DDI)Z
intermediary method_25402
Lnet/minecraft/class_364;method_25402(DDI)Z
official a
Lfjb;a(DDI)Z
-
shouldPause
public boolean shouldPause()- Overrides:
shouldPause
in classScreen
- Mappings:
Namespace Name Mixin selector named shouldPause
Lnet/minecraft/client/gui/screen/Screen;shouldPause()Z
intermediary method_25421
Lnet/minecraft/class_437;method_25421()Z
official k
Lfne;k()Z
-
tick
public void tick() -
setButtonsActive
private void setButtonsActive(boolean active) - Mappings:
Namespace Name Mixin selector named setButtonsActive
Lnet/minecraft/client/gui/screen/DeathScreen;setButtonsActive(Z)V
intermediary method_49299
Lnet/minecraft/class_418;method_49299(Z)V
official c
Lfmc;c(Z)V
-