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 fnh
-
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, 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.booleanmouseClicked(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 delta) voidrenderBackground(DrawContext context, int mouseX, int mouseY, float delta) 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
addDrawable, addDrawableChild, addElementNarrations, addScreenNarrations, addSelectableChild, applyBlur, applyKeyPressNarratorDelay, applyMouseMoveNarratorDelay, applyMousePressScrollNarratorDelay, blur, children, clearAndInit, clearChildren, clearTooltip, close, filesDragged, findSelectedElementData, getMusic, getNarratedTitle, getNavigationFocus, getTitle, getTooltipFromItem, getUsageNarrationText, handleTextClick, hasAltDown, hasControlDown, hasShiftDown, hasUsageText, init, initTabNavigation, insertText, isCopy, isCut, isMouseOver, isPaste, isSelectAll, isValidCharacterForName, keyPressed, narrateScreenIfNarrationEnabled, onDisplayed, refreshNarrator, remove, removed, renderBackgroundTexture, renderDarkening, renderDarkening, renderInGameBackground, renderPanoramaBackground, renderWithTooltip, resize, setInitialFocus, setInitialFocus, setTooltip, setTooltip, setTooltip, setTooltip, switchFocus, updateNarrator, wrapScreenErrorMethods 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
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 aLfnh;a:Lakr;
-
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 bLfnh;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 cLfnh;c:Lwz;
-
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 rLfnh;r: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 sLfnh;s:Lwz;
-
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 uLfnh;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 vLfnh;v:Lfim;
-
-
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>Lfnh;<init>(Lwz;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:
shouldCloseOnEscin classScreen- Mappings:
Namespace Name Mixin selector named shouldCloseOnEscLnet/minecraft/client/gui/screen/Screen;shouldCloseOnEsc()Zintermediary method_25422Lnet/minecraft/class_437;method_25422()Zofficial aJ_Lfod;aJ_()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 mLfnh;m()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 CLfnh;C()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 aLfjp;a(Lfhz;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 bLfod;b(Lfhz;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 aLfnh;a(Lfhz;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 aLfnh;a(I)Lxw;
-
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 aLfki;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 kLfod;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 cLfnh;c(Z)V
-