Class StatsScreen
java.lang.Object
net.minecraft.client.gui.components.events.AbstractContainerEventHandler
net.minecraft.client.gui.screens.Screen
net.minecraft.client.gui.screens.achievement.StatsScreen
- All Implemented Interfaces:
ContainerEventHandler,GuiEventListener,Renderable,TabOrderedElement
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) class(package private) class(package private) class(package private) classNested classes/interfaces inherited from class net.minecraft.client.gui.screens.Screen
Screen.NarratableSearchResult -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Component(package private) static final Identifierprivate booleanWhen true, the game will be paused when the gui is shownprivate static final Componentprotected final Screen(package private) final HeaderAndFooterLayoutprivate static final intprivate static final Component(package private) static final Componentprivate static final Component(package private) static final Identifier(package private) static final Identifier(package private) static final Identifier(package private) final StatsCounterprivate final TabManagerprivate @Nullable TabNavigationBarprivate static final ComponentFields 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 TypeMethodDescription(package private) static StringgetTranslationKey(Stat<Identifier> pStat) protected voidinit()booleankeyPressed(KeyEvent p_446909_) voidonClose()voidvoidrender(GuiGraphics p_440644_, int p_440632_, int p_440325_, float p_440049_) Renders the graphical user interface (GUI) element.protected voidrenderMenuBackground(GuiGraphics p_439627_) protected voidprivate voidsetTabActiveStateAndTooltip(int pIndex) 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, handleDelayedNarration, init, insertText, isAllowedInPortal, isInGameUi, isMouseOver, isPauseScreen, isValidCharacterForName, onFilesDrop, panoramaShouldSpin, rebuildWidgets, removed, removeWidget, renderBackground, renderBlurredBackground, renderMenuBackground, renderMenuBackgroundTexture, renderPanorama, renderTransparentBackground, renderWithTooltipAndSubtitles, resize, setInitialFocus, setInitialFocus, shouldCloseOnEsc, shouldNarrateNavigation, showsActiveEffects, tick, 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, mouseClicked, 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
-
TITLE
-
SLOT_SPRITE
-
HEADER_SPRITE
-
SORT_UP_SPRITE
-
SORT_DOWN_SPRITE
-
PENDING_TEXT
-
NO_VALUE_DISPLAY
-
GENERAL_BUTTON
-
ITEMS_BUTTON
-
MOBS_BUTTON
-
lastScreen
-
LIST_WIDTH
private static final int LIST_WIDTH- See Also:
-
layout
-
tabManager
-
stats
-
isLoading
private boolean isLoadingWhen true, the game will be paused when the gui is shown
-
-
Constructor Details
-
StatsScreen
-
-
Method Details
-
init
protected void init() -
onStatsUpdated
public void onStatsUpdated() -
setTabActiveStateAndTooltip
private void setTabActiveStateAndTooltip(int pIndex) -
repositionElements
protected void repositionElements()- Overrides:
repositionElementsin classScreen
-
keyPressed
- Specified by:
keyPressedin interfaceContainerEventHandler- Specified by:
keyPressedin interfaceGuiEventListener- Overrides:
keyPressedin classScreen
-
render
Description copied from interface:RenderableRenders the graphical user interface (GUI) element.- Specified by:
renderin interfaceRenderable- Overrides:
renderin classScreen- Parameters:
p_440644_- the GuiGraphics object used for rendering.p_440632_- the x-coordinate of the mouse cursor.p_440325_- the y-coordinate of the mouse cursor.p_440049_- the partial tick time.
-
renderMenuBackground
- Overrides:
renderMenuBackgroundin classScreen
-
onClose
public void onClose() -
getTranslationKey
-