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 booleanprivate 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 TypeMethodDescriptionprotected voidextractMenuBackground(GuiGraphicsExtractor graphics) voidextractRenderState(GuiGraphicsExtractor graphics, int xm, int ym, float a) private static StringgetTranslationKey(Stat<Identifier> stat) protected voidinit()booleankeyPressed(KeyEvent event) voidonClose()voidprotected 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, extractBackground, extractBlurredBackground, extractMenuBackground, extractMenuBackgroundTexture, extractPanorama, extractRenderStateWithTooltipAndSubtitles, extractTransparentBackground, fadeWidgets, fillCrashDetails, findNarratableWidget, getBackgroundMusic, getFont, getMinecraft, getNarrationMessage, getRectangle, getTitle, getTooltipFromItem, getUsageNarration, handleDelayedNarration, init, insertText, isAllowedInPortal, isInGameUi, isMouseOver, isPauseScreen, isValidCharacterForName, onFilesDrop, panoramaShouldSpin, rebuildWidgets, removed, removeWidget, 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, preeditUpdated, 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 isLoading
-
-
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
-
extractRenderState
- Specified by:
extractRenderStatein interfaceRenderable- Overrides:
extractRenderStatein classScreen
-
extractMenuBackground
- Overrides:
extractMenuBackgroundin classScreen
-
onClose
-
getTranslationKey
-