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 gcv
-
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 @Nullable ButtonWidgetprivate final booleanprivate final Textprivate Textprivate intprivate @Nullable ButtonWidgetFields 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, narratorToggleButton, PANORAMA_RENDERER, ROTATING_PANORAMA_RENDERER, textRenderer, title, widthFields inherited from interface net.minecraft.client.gui.Element
MAX_DOUBLE_CLICK_INTERVAL -
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.private TextbooleanmouseClicked(double mouseX, double mouseY, int button) 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, applyBlur, applyKeyPressNarratorDelay, applyMouseMoveNarratorDelay, applyMousePressScrollNarratorDelay, blur, children, clearAndInit, clearChildren, clearTooltip, close, findSelectedElementData, getMusic, getNarratedTitle, getNavigationFocus, getTextRenderer, getTitle, getTooltipFromItem, getUsageNarrationText, handleTextClick, hasAltDown, hasControlDown, hasShiftDown, hasUsageText, init, insertText, isCopy, isCut, isMouseOver, isPaste, isSelectAll, isValidCharacterForName, keyPressed, narrateScreenIfNarrationEnabled, onDisplayed, onFilesDropped, refreshNarrator, refreshWidgetPositions, remove, removed, renderBackgroundTexture, renderDarkening, renderDarkening, renderInGameBackground, renderPanoramaBackground, renderWithTooltip, resize, setInitialFocus, setInitialFocus, setTooltip, setTooltip, setTooltip, setTooltip, shouldHideStatusEffectHud, 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, 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 aLgcv;a:Lamb;
-
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 bLgcv;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 cLgcv;c:Lxi;
-
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 dLgcv;d:Z
-
field_59303
private final boolean field_59303- Mappings:
Namespace Name Mixin selector named field_59303Lnet/minecraft/client/gui/screen/DeathScreen;field_59303:Zintermediary field_59303Lnet/minecraft/class_418;field_59303:Zofficial sLgcv;s: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 uLgcv;u:Lxi;
-
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 vLgcv;v:Ljava/util/List;
-
field_59304
- Mappings:
Namespace Name Mixin selector named field_59304Lnet/minecraft/client/gui/screen/DeathScreen;field_59304:Lnet/minecraft/client/gui/widget/ButtonWidget;intermediary field_59304Lnet/minecraft/class_418;field_59304:Lnet/minecraft/class_4185;official wLgcv;w:Lfxy;
-
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 xLgcv;x:Lfxy;
-
-
Constructor Details
-
DeathScreen
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/client/gui/screen/DeathScreen;<init>(Lnet/minecraft/text/Text;ZZ)Vintermediary <init>Lnet/minecraft/class_418;<init>(Lnet/minecraft/class_2561;ZZ)Vofficial <init>Lgcv;<init>(Lxi;ZZ)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.
-
method_70265
- Mappings:
Namespace Name Mixin selector named method_70265Lnet/minecraft/client/gui/screen/DeathScreen;method_70265()Lnet/minecraft/text/Text;intermediary method_70265Lnet/minecraft/class_418;method_70265()Lnet/minecraft/class_2561;official mLgcv;m()Lxi;
-
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 aI_Lgdr;aI_()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 ELgcv;E()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 FLgcv;F()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 aLfzb;a(Lfxk;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 bLgdr;b(Lfxk;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 aLgcv;a(Lfxk;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 aLgcv;a(I)Lyf;
-
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 inGLFWclass.- Parameters:
mouseX- the X coordinate of the mousemouseY- the Y coordinate of the mousebutton- the mouse button number- Returns:
trueto indicate that the event handling is successful/valid- See Also:
- Mappings:
Namespace Name Mixin selector named mouseClickedLnet/minecraft/client/gui/Element;mouseClicked(DDI)Zintermediary method_25402Lnet/minecraft/class_364;method_25402(DDI)Zofficial aLfzv;a(DDI)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 kLgdr;k()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 cLgcv;c(Z)V
-