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 intermediary net/minecraft/class_418official ethnamed net/minecraft/client/gui/screen/DeathScreen
-
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 booleanprivate final Textprivate Textprivate intprivate @Nullable ButtonWidgetFields inherited from class net.minecraft.client.gui.screen.Screen
client, height, OPTIONS_BACKGROUND_TEXTURE, textRenderer, title, widthFields inherited from interface net.minecraft.client.gui.Element
MAX_DOUBLE_CLICK_INTERVAL -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetTextComponentUnderMouse(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) 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, applyKeyPressNarratorDelay, applyMouseMoveNarratorDelay, applyMousePressScrollNarratorDelay, applyNarratorModeChangeDelay, children, clearAndInit, clearChildren, close, filesDragged, findSelectedElementData, getMusic, getNarratedTitle, getNavigationFocus, getTitle, getTooltipFromItem, handleTextClick, hasAltDown, hasControlDown, hasShiftDown, hasUsageText, hide, init, initTabNavigation, insertText, isCopy, isCut, isMouseOver, isPaste, isSelectAll, isValidCharacterForName, keyPressed, narrateScreenIfNarrationEnabled, onDisplayed, remove, removed, renderBackground, renderBackgroundTexture, renderWithTooltip, resize, 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, focusOn, getFocusedPath, getNavigationPath, hoveredElement, isFocused, keyReleased, mouseDragged, mouseReleased, mouseScrolled, setFocused
-
Field Details
-
ticksSinceDeath
private int ticksSinceDeath- Mappings:
Namespace Name Mixin selector intermediary field_2451Lnet/minecraft/class_418;field_2451:Iofficial aLeth;a:Inamed ticksSinceDeathLnet/minecraft/client/gui/screen/DeathScreen;ticksSinceDeath:I
-
message
- Mappings:
Namespace Name Mixin selector intermediary field_2450Lnet/minecraft/class_418;field_2450:Lnet/minecraft/class_2561;official bLeth;b:Lsw;named messageLnet/minecraft/client/gui/screen/DeathScreen;message:Lnet/minecraft/text/Text;
-
isHardcore
private final boolean isHardcore- Mappings:
Namespace Name Mixin selector intermediary field_18974Lnet/minecraft/class_418;field_18974:Zofficial cLeth;c:Znamed isHardcoreLnet/minecraft/client/gui/screen/DeathScreen;isHardcore:Z
-
scoreText
- Mappings:
Namespace Name Mixin selector intermediary field_26537Lnet/minecraft/class_418;field_26537:Lnet/minecraft/class_2561;official jLeth;j:Lsw;named scoreTextLnet/minecraft/client/gui/screen/DeathScreen;scoreText:Lnet/minecraft/text/Text;
-
buttons
- Mappings:
Namespace Name Mixin selector intermediary field_33809Lnet/minecraft/class_418;field_33809:Ljava/util/List;official kLeth;k:Ljava/util/List;named buttonsLnet/minecraft/client/gui/screen/DeathScreen;buttons:Ljava/util/List;
-
titleScreenButton
- Mappings:
Namespace Name Mixin selector intermediary field_41684Lnet/minecraft/class_418;field_41684:Lnet/minecraft/class_4185;official lLeth;l:Lepa;named titleScreenButtonLnet/minecraft/client/gui/screen/DeathScreen;titleScreenButton:Lnet/minecraft/client/gui/widget/ButtonWidget;
-
-
Constructor Details
-
DeathScreen
- Mappings:
Namespace Name Mixin selector intermediary <init>Lnet/minecraft/class_418;<init>(Lnet/minecraft/class_2561;Z)Vofficial <init>Leth;<init>(Lsw;Z)Vnamed <init>Lnet/minecraft/client/gui/screen/DeathScreen;<init>(Lnet/minecraft/text/Text;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(net.minecraft.client.gui.Element)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 intermediary method_25422Lnet/minecraft/class_437;method_25422()Zofficial av_Leug;av_()Znamed shouldCloseOnEscLnet/minecraft/client/gui/screen/Screen;shouldCloseOnEsc()Z
-
onTitleScreenButtonClicked
private void onTitleScreenButtonClicked()- Mappings:
Namespace Name Mixin selector intermediary method_47940Lnet/minecraft/class_418;method_47940()Vofficial lLeth;l()Vnamed onTitleScreenButtonClickedLnet/minecraft/client/gui/screen/DeathScreen;onTitleScreenButtonClicked()V
-
quitLevel
private void quitLevel()- Mappings:
Namespace Name Mixin selector intermediary method_22364Lnet/minecraft/class_418;method_22364()Vofficial BLeth;B()Vnamed quitLevelLnet/minecraft/client/gui/screen/DeathScreen;quitLevel()V
-
render
- Specified by:
renderin interfaceDrawable- Overrides:
renderin classScreen- Mappings:
Namespace Name Mixin selector intermediary method_25394Lnet/minecraft/class_4068;method_25394(Lnet/minecraft/class_332;IIF)Vofficial aLepy;a(Leop;IIF)Vnamed renderLnet/minecraft/client/gui/Drawable;render(Lnet/minecraft/client/gui/DrawContext;IIF)V
-
getTextComponentUnderMouse
- Mappings:
Namespace Name Mixin selector intermediary method_2164Lnet/minecraft/class_418;method_2164(I)Lnet/minecraft/class_2583;official aLeth;a(I)Lts;named getTextComponentUnderMouseLnet/minecraft/client/gui/screen/DeathScreen;getTextComponentUnderMouse(I)Lnet/minecraft/text/Style;
-
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 intermediary method_25402Lnet/minecraft/class_364;method_25402(DDI)Zofficial aLeqk;a(DDI)Znamed mouseClickedLnet/minecraft/client/gui/Element;mouseClicked(DDI)Z
-
shouldPause
public boolean shouldPause()- Overrides:
shouldPausein classScreen- Mappings:
Namespace Name Mixin selector intermediary method_25421Lnet/minecraft/class_437;method_25421()Zofficial az_Leug;az_()Znamed shouldPauseLnet/minecraft/client/gui/screen/Screen;shouldPause()Z
-
tick
public void tick() -
setButtonsActive
private void setButtonsActive(boolean active) - Mappings:
Namespace Name Mixin selector intermediary method_49299Lnet/minecraft/class_418;method_49299(Z)Vofficial cLeth;c(Z)Vnamed setButtonsActiveLnet/minecraft/client/gui/screen/DeathScreen;setButtonsActive(Z)V
-