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 TypeClassDescriptionprivate classprivate classprivate classprivate classNested classes/interfaces inherited from class Screen
Screen.NarratableSearchResult -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Componentprivate static final Identifierprivate booleanWhen true, the game will be paused when the gui is shownprivate static final Componentprotected final Screenprivate final HeaderAndFooterLayoutprivate static final intprivate static final Componentprivate static final Componentprivate static final Componentprivate static final Identifierprivate static final Identifierprivate static final Identifierprivate final StatsCounterprivate final TabManagerprivate @Nullable TabNavigationBarprivate static final ComponentFields inherited from class 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 static StringgetTranslationKey(Stat<Identifier> stat) protected voidinit()booleankeyPressed(KeyEvent event) voidonClose()voidvoidrender(GuiGraphics graphics, int xm, int ym, float a) Renders the graphical user interface (GUI) element.protected voidrenderMenuBackground(GuiGraphics graphics) protected voidprivate voidsetTabActiveStateAndTooltip(int index) Methods inherited from class 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 AbstractContainerEventHandler
getFocused, isDragging, setDragging, setFocusedMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ContainerEventHandler
charTyped, getBorderForArrowNavigation, getChildAt, getCurrentFocusPath, isFocused, keyReleased, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, nextFocusPath, setFocusedMethods inherited from interface GuiEventListener
mouseMoved, shouldTakeFocusAfterInteractionMethods inherited from interface 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
-
onStatsUpdated
public void onStatsUpdated() -
setTabActiveStateAndTooltip
private void setTabActiveStateAndTooltip(int index) -
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:
graphics- the GuiGraphics object used for rendering.xm- the x-coordinate of the mouse cursor.ym- the y-coordinate of the mouse cursor.a- the partial tick time.
-
renderMenuBackground
- Overrides:
renderMenuBackgroundin classScreen
-
onClose
-
getTranslationKey
-