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 glo
-
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 static final Identifierprivate final booleanprivate final Textprivate Textprivate intprivate @Nullable 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
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static voidfillBackgroundGradient(DrawContext context, int width, int height) getTextComponentUnderMouse(int mouseX) 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, handleClickEvent, handleOpenUri, handleRunCommand, handleTextClick, 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
-
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 aLglo;a:Lamj;
-
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 bLglo;b: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 cLglo;c:Lxx;
-
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 dLglo;d:Z
-
scoreText
- Mappings:
Namespace Name Mixin selector named scoreTextLnet/minecraft/client/gui/screen/DeathScreen;scoreText:Lnet/minecraft/text/Text;intermediary field_26537Lnet/minecraft/class_418;field_26537:Lnet/minecraft/class_2561;official eLglo;e:Lxx;
-
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 fLglo;f: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 tLglo;t:Lgdp;
-
-
Constructor Details
-
DeathScreen
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/client/gui/screen/DeathScreen;<init>(Lnet/minecraft/text/Text;Z)Vintermediary <init>Lnet/minecraft/class_418;<init>(Lnet/minecraft/class_2561;Z)Vofficial <init>Lglo;<init>(Lxx;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.
-
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 aY_Lgmj;aY_()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 oLglo;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 pLglo;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 aLget;a(Lgdd;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:
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 bLgmj;b(Lgdd;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 aLglo;a(Lgdd;II)V
-
getTextComponentUnderMouse
- Mappings:
Namespace Name Mixin selector named getTextComponentUnderMouseLnet/minecraft/client/gui/screen/DeathScreen;getTextComponentUnderMouse(I)Lnet/minecraft/text/Style;intermediary method_2164Lnet/minecraft/class_418;method_2164(I)Lnet/minecraft/class_2583;official aLglo;a(I)Lyv;
-
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 aLggw;a(Lgti;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 ba_Lgmj;ba_()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 bb_Lgmj;bb_()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 cLglo;c(Z)V
-