Class StatsScreen
java.lang.Object
net.minecraft.client.gui.GuiComponent
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
,Widget
,StatsUpdateListener
-
Nested Class Summary
Modifier and TypeClassDescription(package private) class
(package private) class
(package private) class
Nested classes/interfaces inherited from class net.minecraft.client.gui.screens.Screen
Screen.NarratableSearchResult
-
Field Summary
Modifier and TypeFieldDescriptionprivate ObjectSelectionList<?>
private boolean
(package private) StatsScreen.ItemStatisticsList
protected Screen
private StatsScreen.MobsStatisticsList
private static Component
private static int
private static int
private static int
private static int
private static int
private static int
private static int
private static int
private static int
private static int
private static int
private static int
(package private) StatsCounter
Fields inherited from class net.minecraft.client.gui.screens.Screen
font, height, itemRenderer, minecraft, passEvents, renderables, title, width
Fields inherited from class net.minecraft.client.gui.GuiComponent
BACKGROUND_LOCATION, GUI_ICONS_LOCATION, STATS_ICON_LOCATION
Fields inherited from interface net.minecraft.client.gui.screens.achievement.StatsUpdateListener
LOADING_SYMBOLS
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription(package private) void
(package private) void
blitSlotIcon(PoseStack p_96953_, int p_96954_, int p_96955_, int p_96956_, int p_96957_)
(package private) int
getColumnX(int p_96909_)
(package private) static String
getTranslationKey(Stat<ResourceLocation> p_96947_)
protected void
init()
void
void
boolean
void
void
void
setActiveList(ObjectSelectionList<?> p_96925_)
Methods inherited from class net.minecraft.client.gui.screens.Screen
addRenderableOnly, addRenderableWidget, addWidget, afterKeyboardAction, afterMouseAction, afterMouseMove, children, clearWidgets, findNarratableWidget, getMinecraft, getNarrationMessage, getTitle, getTooltipFromItem, handleComponentClicked, handleDelayedNarration, hasAltDown, hasControlDown, hasShiftDown, init, insertText, isCopy, isCut, isMouseOver, isPaste, isSelectAll, isValidCharacterForName, keyPressed, narrationEnabled, onClose, onFilesDrop, removed, removeWidget, renderBackground, renderBackground, renderComponentHoverEffect, renderComponentTooltip, renderComponentTooltip, renderComponentTooltip, renderComponentTooltip, renderComponentToolTip, renderDirtBackground, renderTooltip, renderTooltip, renderTooltip, renderTooltip, renderTooltip, renderTooltip, renderTooltip, renderTooltip, renderToolTip, resize, sendMessage, sendMessage, shouldCloseOnEsc, tick, triggerImmediateNarration, updateNarratedWidget, updateNarrationState, wrapScreenError
Methods inherited from class net.minecraft.client.gui.components.events.AbstractContainerEventHandler
getFocused, isDragging, setDragging, setFocused
Methods inherited from class net.minecraft.client.gui.GuiComponent
blit, blit, blit, blit, blit, blitOutlineBlack, drawCenteredString, drawCenteredString, drawCenteredString, drawString, drawString, drawString, fill, fillGradient, fillGradient, fillGradient, getBlitOffset, hLine, setBlitOffset, vLine
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.client.gui.components.events.ContainerEventHandler
changeFocus, charTyped, getChildAt, keyReleased, magicalSpecialHackyFocus, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, setInitialFocus
Methods inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
mouseMoved
-
Field Details
-
PENDING_TEXT
-
lastScreen
-
statsList
-
itemStatsList
StatsScreen.ItemStatisticsList itemStatsList -
mobsStatsList
-
stats
-
activeList
-
isLoading
private boolean isLoading -
SLOT_TEX_SIZE
private static final int SLOT_TEX_SIZE- See Also:
- Constant Field Values
-
SLOT_BG_SIZE
private static final int SLOT_BG_SIZE- See Also:
- Constant Field Values
-
SLOT_STAT_HEIGHT
private static final int SLOT_STAT_HEIGHT- See Also:
- Constant Field Values
-
SLOT_BG_X
private static final int SLOT_BG_X- See Also:
- Constant Field Values
-
SLOT_BG_Y
private static final int SLOT_BG_Y- See Also:
- Constant Field Values
-
SLOT_FG_X
private static final int SLOT_FG_X- See Also:
- Constant Field Values
-
SLOT_FG_Y
private static final int SLOT_FG_Y- See Also:
- Constant Field Values
-
SLOT_LEFT_INSERT
private static final int SLOT_LEFT_INSERT- See Also:
- Constant Field Values
-
SLOT_TEXT_OFFSET
private static final int SLOT_TEXT_OFFSET- See Also:
- Constant Field Values
-
SORT_NONE
private static final int SORT_NONE- See Also:
- Constant Field Values
-
SORT_DOWN
private static final int SORT_DOWN- See Also:
- Constant Field Values
-
SORT_UP
private static final int SORT_UP- See Also:
- Constant Field Values
-
-
Constructor Details
-
StatsScreen
-
-
Method Details
-
init
protected void init() -
initLists
public void initLists() -
initButtons
public void initButtons() -
render
-
onStatsUpdated
public void onStatsUpdated()- Specified by:
onStatsUpdated
in interfaceStatsUpdateListener
-
isPauseScreen
public boolean isPauseScreen()- Overrides:
isPauseScreen
in classScreen
-
getActiveList
-
setActiveList
-
getTranslationKey
-
getColumnX
int getColumnX(int p_96909_) -
blitSlot
-
blitSlotIcon
-