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 gos
-
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 static final intprivate final ClientPlayerEntityprivate final Textprivate final booleanprivate 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
ConstructorsConstructorDescriptionDeathScreen(@Nullable Text message, boolean isHardcore, ClientPlayerEntity clientPlayerEntity) -
Method Summary
Modifier and TypeMethodDescription(package private) static voidfillBackgroundGradient(DrawContext context, int width, int height) protected voidinit()Called when a screen should be initialized.booleanprivate voidmethod_75826(class_12225 class_12225) booleanmouseClicked(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 aLgos;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 bLgos;b:Lamy;
-
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 cLgos;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 dLgos;d:Lym;
-
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 eLgos;e:Z
-
field_63893
- Mappings:
Namespace Name Mixin selector named field_63893Lnet/minecraft/client/gui/screen/DeathScreen;field_63893:Lnet/minecraft/client/network/ClientPlayerEntity;intermediary field_63893Lnet/minecraft/class_418;field_63893:Lnet/minecraft/class_746;official fLgos;f:Lhhx;
-
field_63894
- Mappings:
Namespace Name Mixin selector named field_63894Lnet/minecraft/client/gui/screen/DeathScreen;field_63894:Lnet/minecraft/text/Text;intermediary field_63894Lnet/minecraft/class_418;field_63894:Lnet/minecraft/class_2561;official tLgos;t:Lym;
-
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 uLgos;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 vLgos;v:Lggq;
-
-
Constructor Details
-
DeathScreen
public DeathScreen(@Nullable @Nullable Text message, boolean isHardcore, ClientPlayerEntity clientPlayerEntity) - 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>Lgos;<init>(Lym;ZLhhx;)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_Lgpn;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 oLgos;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 pLgos;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 aLghu;a(Lggd;IIF)V
-
method_75826
- Mappings:
Namespace Name Mixin selector named method_75826Lnet/minecraft/client/gui/screen/DeathScreen;method_75826(Lnet/minecraft/class_12225;)Vintermediary method_75826Lnet/minecraft/class_418;method_75826(Lnet/minecraft/class_12225;)Vofficial aLgos;a(Lgfx;)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 bLgpn;b(Lggd;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 aLgos;a(Lggd;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 aLgjy;a(Lgwm;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_Lgpn;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_Lgpn;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 cLgos;c(Z)V
-