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/DeathScreenintermediary net/minecraft/class_418official gpy
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class net.minecraft.client.gui.screen.Screen
Screen.SelectedElementNarrationData -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final List<ButtonWidget> private final ClientPlayerEntityprivate static final Identifierprivate static final intprivate final booleanprivate final Textprivate final Textprivate intprivate ButtonWidgetFields inherited from class net.minecraft.client.gui.screen.Screen
client, executor, field_60460, FOOTER_SEPARATOR_TEXTURE, HEADER_SEPARATOR_TEXTURE, height, INWORLD_FOOTER_SEPARATOR_TEXTURE, INWORLD_HEADER_SEPARATOR_TEXTURE, MENU_BACKGROUND_TEXTURE, narratorToggleButton, textRenderer, title, width -
Constructor Summary
ConstructorsConstructorDescriptionDeathScreen(@Nullable Text message, boolean isHardcore, ClientPlayerEntity decedent) -
Method Summary
Modifier and TypeMethodDescriptionprivate voiddrawTitles(TextConsumer drawer) (package private) static voidfillBackgroundGradient(DrawContext context, int width, int height) protected voidinit()Called when a screen should be initialized.booleanbooleanmouseClicked(Click click, boolean doubled) Callback for when a mouse button down event has been captured.private voidprivate voidvoidrender(DrawContext context, int mouseX, int mouseY, float deltaTicks) voidrenderBackground(DrawContext context, int mouseX, int mouseY, float deltaTicks) Renders the background of this screen.private voidsetButtonsActive(boolean active) booleanChecks whether this screen should be closed when the escape key is pressed.booleanvoidtick()Methods inherited from class net.minecraft.client.gui.screen.Screen
addCrashReportSection, addDrawable, addDrawableChild, addElementNarrations, addScreenNarrations, addSelectableChild, allowRotatingPanorama, applyBlur, applyKeyPressNarratorDelay, applyMouseMoveNarratorDelay, applyMousePressScrollNarratorDelay, blur, canInterruptOtherScreen, children, clearAndInit, clearChildren, close, deferSubtitles, findSelectedElementData, getMusic, getNarratedTitle, getNavigationFocus, getTextRenderer, getTitle, getTooltipFromItem, getUsageNarrationText, handleBasicClickEvent, handleClickEvent, handleOpenUri, handleRunCommand, hasUsageText, init, insertText, isMouseOver, isValidCharacterForName, keyPressed, narrateScreenIfNarrationEnabled, onDisplayed, onFilesDropped, refreshNarrator, refreshWidgetPositions, remove, removed, renderBackgroundTexture, renderDarkening, renderDarkening, renderInGameBackground, renderPanoramaBackground, renderWithTooltip, resize, setInitialFocus, setInitialFocus, setWidgetAlpha, showsStatusEffects, switchFocus, updateNarratorMethods inherited from class net.minecraft.client.gui.AbstractParentElement
getFocused, isDragging, setDragging, setFocusedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.client.gui.Element
getBorder, isClickable, mouseMovedMethods inherited from interface net.minecraft.client.gui.navigation.Navigable
getNavigationOrderMethods inherited from interface net.minecraft.client.gui.ParentElement
charTyped, getFocusedPath, getNavigationPath, hoveredElement, isFocused, keyReleased, mouseDragged, mouseReleased, mouseScrolled, setFocused
-
Field Details
-
field_63892
private static final int field_63892- See Also:
- Mappings:
Namespace Name Mixin selector named field_63892Lnet/minecraft/client/gui/screen/DeathScreen;field_63892:Iintermediary field_63892Lnet/minecraft/class_418;field_63892:Iofficial aLgpy;a:I
-
DRAFT_REPORT_ICON_TEXTURE
- Mappings:
Namespace Name Mixin selector named DRAFT_REPORT_ICON_TEXTURELnet/minecraft/client/gui/screen/DeathScreen;DRAFT_REPORT_ICON_TEXTURE:Lnet/minecraft/util/Identifier;intermediary field_45407Lnet/minecraft/class_418;field_45407:Lnet/minecraft/class_2960;official bLgpy;b:Lamo;
-
ticksSinceDeath
private int ticksSinceDeath- Mappings:
Namespace Name Mixin selector named ticksSinceDeathLnet/minecraft/client/gui/screen/DeathScreen;ticksSinceDeath:Iintermediary field_2451Lnet/minecraft/class_418;field_2451:Iofficial cLgpy;c:I
-
message
- Mappings:
Namespace Name Mixin selector named messageLnet/minecraft/client/gui/screen/DeathScreen;message:Lnet/minecraft/text/Text;intermediary field_2450Lnet/minecraft/class_418;field_2450:Lnet/minecraft/class_2561;official dLgpy;d:Lyh;
-
isHardcore
private final boolean isHardcore- Mappings:
Namespace Name Mixin selector named isHardcoreLnet/minecraft/client/gui/screen/DeathScreen;isHardcore:Zintermediary field_18974Lnet/minecraft/class_418;field_18974:Zofficial eLgpy;e:Z
-
decedent
- Mappings:
Namespace Name Mixin selector named decedentLnet/minecraft/client/gui/screen/DeathScreen;decedent:Lnet/minecraft/client/network/ClientPlayerEntity;intermediary field_63893Lnet/minecraft/class_418;field_63893:Lnet/minecraft/class_746;official fLgpy;f:Lhje;
-
scoreText
- Mappings:
Namespace Name Mixin selector named scoreTextLnet/minecraft/client/gui/screen/DeathScreen;scoreText:Lnet/minecraft/text/Text;intermediary field_63894Lnet/minecraft/class_418;field_63894:Lnet/minecraft/class_2561;official tLgpy;t:Lyh;
-
buttons
- Mappings:
Namespace Name Mixin selector named buttonsLnet/minecraft/client/gui/screen/DeathScreen;buttons:Ljava/util/List;intermediary field_33809Lnet/minecraft/class_418;field_33809:Ljava/util/List;official uLgpy;u:Ljava/util/List;
-
titleScreenButton
- Mappings:
Namespace Name Mixin selector named titleScreenButtonLnet/minecraft/client/gui/screen/DeathScreen;titleScreenButton:Lnet/minecraft/client/gui/widget/ButtonWidget;intermediary field_41684Lnet/minecraft/class_418;field_41684:Lnet/minecraft/class_4185;official vLgpy;v:Lghv;
-
-
Constructor Details
-
DeathScreen
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/client/gui/screen/DeathScreen;<init>(Lnet/minecraft/text/Text;ZLnet/minecraft/client/network/ClientPlayerEntity;)Vintermediary <init>Lnet/minecraft/class_418;<init>(Lnet/minecraft/class_2561;ZLnet/minecraft/class_746;)Vofficial <init>Lgpy;<init>(Lyh;ZLhje;)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.
-
shouldCloseOnEsc
public boolean shouldCloseOnEsc()Checks whether this screen should be closed when the escape key is pressed.- Overrides:
shouldCloseOnEscin classScreen- Mappings:
Namespace Name Mixin selector named shouldCloseOnEscLnet/minecraft/client/gui/screen/Screen;shouldCloseOnEsc()Zintermediary method_25422Lnet/minecraft/class_437;method_25422()Zofficial aX_Lgqt;aX_()Z
-
onTitleScreenButtonClicked
private void onTitleScreenButtonClicked()- Mappings:
Namespace Name Mixin selector named onTitleScreenButtonClickedLnet/minecraft/client/gui/screen/DeathScreen;onTitleScreenButtonClicked()Vintermediary method_47940Lnet/minecraft/class_418;method_47940()Vofficial oLgpy;o()V
-
quitLevel
private void quitLevel()- Mappings:
Namespace Name Mixin selector named quitLevelLnet/minecraft/client/gui/screen/DeathScreen;quitLevel()Vintermediary method_22364Lnet/minecraft/class_418;method_22364()Vofficial pLgpy;p()V
-
render
- Specified by:
renderin interfaceDrawable- Overrides:
renderin classScreen- Mappings:
Namespace Name Mixin selector named renderLnet/minecraft/client/gui/Drawable;render(Lnet/minecraft/client/gui/DrawContext;IIF)Vintermediary method_25394Lnet/minecraft/class_4068;method_25394(Lnet/minecraft/class_332;IIF)Vofficial aLgiz;a(Lghi;IIF)V
-
drawTitles
- Mappings:
Namespace Name Mixin selector named drawTitlesLnet/minecraft/client/gui/screen/DeathScreen;drawTitles(Lnet/minecraft/client/font/TextConsumer;)Vintermediary method_75826Lnet/minecraft/class_418;method_75826(Lnet/minecraft/class_12225;)Vofficial aLgpy;a(Lghc;)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:
renderBackgroundin classScreen- Mappings:
Namespace Name Mixin selector named renderBackgroundLnet/minecraft/client/gui/screen/Screen;renderBackground(Lnet/minecraft/client/gui/DrawContext;IIF)Vintermediary method_25420Lnet/minecraft/class_437;method_25420(Lnet/minecraft/class_332;IIF)Vofficial bLgqt;b(Lghi;IIF)V
-
fillBackgroundGradient
- Mappings:
Namespace Name Mixin selector named fillBackgroundGradientLnet/minecraft/client/gui/screen/DeathScreen;fillBackgroundGradient(Lnet/minecraft/client/gui/DrawContext;II)Vintermediary method_59546Lnet/minecraft/class_418;method_59546(Lnet/minecraft/class_332;II)Vofficial aLgpy;a(Lghi;II)V
-
mouseClicked
Callback for when a mouse button down event has been captured. The button number is identified by the constants inGLFWclass.- Returns:
trueto indicate that the event handling is successful/valid- See Also:
- Mappings:
Namespace Name Mixin selector named mouseClickedLnet/minecraft/client/gui/Element;mouseClicked(Lnet/minecraft/client/gui/Click;Z)Zintermediary method_25402Lnet/minecraft/class_364;method_25402(Lnet/minecraft/class_11909;Z)Zofficial aLgle;a(Lgxs;Z)Z
-
shouldPause
public boolean shouldPause()- Overrides:
shouldPausein classScreen- Mappings:
Namespace Name Mixin selector named shouldPauseLnet/minecraft/client/gui/screen/Screen;shouldPause()Zintermediary method_25421Lnet/minecraft/class_437;method_25421()Zofficial aZ_Lgqt;aZ_()Z
-
keepOpenThroughPortal
public boolean keepOpenThroughPortal()- Overrides:
keepOpenThroughPortalin classScreen- Mappings:
Namespace Name Mixin selector named keepOpenThroughPortalLnet/minecraft/client/gui/screen/Screen;keepOpenThroughPortal()Zintermediary method_73217Lnet/minecraft/class_437;method_73217()Zofficial ba_Lgqt;ba_()Z
-
tick
public void tick() -
setButtonsActive
private void setButtonsActive(boolean active) - Mappings:
Namespace Name Mixin selector named setButtonsActiveLnet/minecraft/client/gui/screen/DeathScreen;setButtonsActive(Z)Vintermediary method_49299Lnet/minecraft/class_418;method_49299(Z)Vofficial cLgpy;c(Z)V
-