Package net.minecraft.client.gui.screens
Class DeathScreen
java.lang.Object
net.minecraft.client.gui.components.events.AbstractContainerEventHandler
net.minecraft.client.gui.screens.Screen
net.minecraft.client.gui.screens.DeathScreen
- All Implemented Interfaces:
ContainerEventHandler,GuiEventListener,Renderable,TabOrderedElement
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class net.minecraft.client.gui.screens.Screen
Screen.NarratableSearchResult -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Componentprivate Componentprivate intThe integer value containing the number of ticks that have passed since the player's deathprivate static final ResourceLocationprivate Buttonprivate final booleanFields inherited from class net.minecraft.client.gui.screens.Screen
FADE_IN_TIME, font, FOOTER_SEPARATOR, HEADER_SEPARATOR, height, INWORLD_FOOTER_SEPARATOR, INWORLD_HEADER_SEPARATOR, MENU_BACKGROUND, minecraft, narratorButton, renderables, screenExecutor, title, width -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidprivate StylegetClickedComponentStyleAt(int pX) private voidprotected voidinit()booleanbooleanbooleanmouseClicked(MouseButtonEvent p_446287_, boolean p_433128_) voidrender(GuiGraphics p_283488_, int p_283551_, int p_283002_, float p_281981_) Renders the graphical user interface (GUI) element.voidrenderBackground(GuiGraphics p_296411_, int p_295765_, int p_295221_, float p_295625_) (package private) static voidrenderDeathBackground(GuiGraphics pGuiGraphics, int pWidth, int pHeight) private voidsetButtonsActive(boolean pActive) booleanvoidtick()Methods inherited from class net.minecraft.client.gui.screens.Screen
added, addRenderableOnly, addRenderableWidget, addWidget, afterKeyboardAction, afterMouseAction, afterMouseMove, canInterruptWithAnotherScreen, changeFocus, children, clearFocus, clearWidgets, clickCommandAction, clickUrlAction, defaultHandleClickEvent, defaultHandleGameClickEvent, fadeWidgets, fillCrashDetails, findNarratableWidget, getBackgroundMusic, getFont, getMinecraft, getNarrationMessage, getRectangle, getTitle, getTooltipFromItem, getUsageNarration, handleClickEvent, handleComponentClicked, handleDelayedNarration, init, insertText, isInGameUi, isMouseOver, isValidCharacterForName, keyPressed, onClose, onFilesDrop, panoramaShouldSpin, rebuildWidgets, removed, removeWidget, renderBlurredBackground, renderMenuBackground, renderMenuBackground, renderMenuBackgroundTexture, renderPanorama, renderTransparentBackground, renderWithTooltipAndSubtitles, repositionElements, resize, setInitialFocus, setInitialFocus, shouldNarrateNavigation, showsActiveEffects, triggerImmediateNarration, updateNarratedWidget, updateNarrationState, updateNarratorStatusMethods inherited from class net.minecraft.client.gui.components.events.AbstractContainerEventHandler
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.components.events.ContainerEventHandler
charTyped, getChildAt, getCurrentFocusPath, isFocused, keyReleased, mouseDragged, mouseReleased, mouseScrolled, nextFocusPath, setFocusedMethods inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
getBorderForArrowNavigation, mouseMoved, shouldTakeFocusAfterInteractionMethods inherited from interface net.minecraft.client.gui.components.TabOrderedElement
getTabOrderGroup
-
Field Details
-
DRAFT_REPORT_SPRITE
-
delayTicker
private int delayTickerThe integer value containing the number of ticks that have passed since the player's death -
causeOfDeath
-
hardcore
private final boolean hardcore -
deathScore
-
exitButtons
-
exitToTitleButton
-
-
Constructor Details
-
DeathScreen
-
-
Method Details
-
init
protected void init() -
shouldCloseOnEsc
public boolean shouldCloseOnEsc()- Overrides:
shouldCloseOnEscin classScreen
-
handleExitToTitleScreen
private void handleExitToTitleScreen() -
exitToTitleScreen
private void exitToTitleScreen() -
render
Description copied from interface:RenderableRenders the graphical user interface (GUI) element.- Specified by:
renderin interfaceRenderable- Overrides:
renderin classScreen- Parameters:
p_283488_- the GuiGraphics object used for rendering.p_283551_- the x-coordinate of the mouse cursor.p_283002_- the y-coordinate of the mouse cursor.p_281981_- the partial tick time.
-
renderBackground
- Overrides:
renderBackgroundin classScreen
-
renderDeathBackground
-
getClickedComponentStyleAt
-
mouseClicked
-
isPauseScreen
public boolean isPauseScreen()- Overrides:
isPauseScreenin classScreen
-
isAllowedInPortal
public boolean isAllowedInPortal()- Overrides:
isAllowedInPortalin classScreen
-
tick
public void tick() -
setButtonsActive
private void setButtonsActive(boolean pActive)
-