Package net.minecraft.client.gui.screen
Class StatsScreen
java.lang.Object
net.minecraft.client.gui.AbstractParentElement
net.minecraft.client.gui.screen.Screen
net.minecraft.client.gui.screen.StatsScreen
- All Implemented Interfaces:
Drawable
,Element
,Navigable
,ParentElement
,StatsListener
- Mappings:
Namespace Name official eys
intermediary net/minecraft/class_447
named net/minecraft/client/gui/screen/StatsScreen
-
Nested Class Summary
Modifier and TypeClassDescriptionprivate class
private class
private class
Nested classes/interfaces inherited from class net.minecraft.client.gui.screen.Screen
Screen.SelectedElementNarrationData
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final Text
private boolean
private static final int
private static final int
private static final int
private static final int
private static final int
private static final int
private static final int
private static final int
private static final int
private static final int
private static final int
(package private) static final Identifier
(package private) StatsScreen.ItemStatsListWidget
(package private) static final Text
protected final Screen
private @Nullable AlwaysSelectedEntryListWidget<?>
(package private) static final Identifier
(package private) static final Identifier
(package private) static final Identifier
(package private) final StatHandler
Fields inherited from class net.minecraft.client.gui.screen.Screen
client, executor, height, OPTIONS_BACKGROUND_TEXTURE, textRenderer, title, width
Fields inherited from interface net.minecraft.client.gui.Element
MAX_DOUBLE_CLICK_INTERVAL
Fields inherited from interface net.minecraft.client.gui.screen.StatsListener
PROGRESS_BAR_STAGES
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
(package private) int
getColumnX
(int index) (package private) static String
getStatTranslationKey
(Stat<Identifier> stat) protected void
init()
Called when a screen should be initialized.void
void
render
(DrawContext context, int mouseX, int mouseY, float delta) void
renderBackground
(DrawContext context, int mouseX, int mouseY, float delta) Renders the background of this screen.(package private) void
renderIcon
(DrawContext context, int x, int y, Identifier texture) (package private) void
renderStatItem
(DrawContext context, int x, int y, Item item) void
boolean
Methods inherited from class net.minecraft.client.gui.screen.Screen
addDrawable, addDrawableChild, addElementNarrations, addScreenNarrations, addSelectableChild, applyKeyPressNarratorDelay, applyMouseMoveNarratorDelay, applyMousePressScrollNarratorDelay, applyNarratorModeChangeDelay, children, clearAndInit, clearChildren, close, filesDragged, findSelectedElementData, getMusic, getNarratedTitle, getNavigationFocus, getTitle, getTooltipFromItem, getUsageNarrationText, handleTextClick, hasAltDown, hasControlDown, hasShiftDown, hasUsageText, hide, init, initTabNavigation, insertText, isCopy, isCut, isMouseOver, isPaste, isSelectAll, isValidCharacterForName, keyPressed, narrateScreenIfNarrationEnabled, onDisplayed, remove, removed, renderBackgroundTexture, renderInGameBackground, renderWithTooltip, resize, setInitialFocus, setTooltip, setTooltip, setTooltip, setTooltip, shouldCloseOnEsc, switchFocus, tick, updateNarrator, wrapScreenError
Methods inherited from class net.minecraft.client.gui.AbstractParentElement
getFocused, isDragging, setDragging, setFocused
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.Element
mouseMoved
Methods inherited from interface net.minecraft.client.gui.navigation.Navigable
getNavigationOrder
Methods inherited from interface net.minecraft.client.gui.ParentElement
charTyped, focusOn, getFocusedPath, getNavigationPath, hoveredElement, isFocused, keyReleased, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, setFocused
-
Field Details
-
SLOT_TEXTURE
- Mappings:
Namespace Name Mixin selector official c
Leys;c:Laew;
intermediary field_45418
Lnet/minecraft/class_447;field_45418:Lnet/minecraft/class_2960;
named SLOT_TEXTURE
Lnet/minecraft/client/gui/screen/StatsScreen;SLOT_TEXTURE:Lnet/minecraft/util/Identifier;
-
HEADER_TEXTURE
- Mappings:
Namespace Name Mixin selector official k
Leys;k:Laew;
intermediary field_45419
Lnet/minecraft/class_447;field_45419:Lnet/minecraft/class_2960;
named HEADER_TEXTURE
Lnet/minecraft/client/gui/screen/StatsScreen;HEADER_TEXTURE:Lnet/minecraft/util/Identifier;
-
SORT_UP_TEXTURE
- Mappings:
Namespace Name Mixin selector official l
Leys;l:Laew;
intermediary field_45420
Lnet/minecraft/class_447;field_45420:Lnet/minecraft/class_2960;
named SORT_UP_TEXTURE
Lnet/minecraft/client/gui/screen/StatsScreen;SORT_UP_TEXTURE:Lnet/minecraft/util/Identifier;
-
SORT_DOWN_TEXTURE
- Mappings:
Namespace Name Mixin selector official m
Leys;m:Laew;
intermediary field_45421
Lnet/minecraft/class_447;field_45421:Lnet/minecraft/class_2960;
named SORT_DOWN_TEXTURE
Lnet/minecraft/client/gui/screen/StatsScreen;SORT_DOWN_TEXTURE:Lnet/minecraft/util/Identifier;
-
DOWNLOADING_STATS_TEXT
- Mappings:
Namespace Name Mixin selector official n
Leys;n:Ltl;
intermediary field_26546
Lnet/minecraft/class_447;field_26546:Lnet/minecraft/class_2561;
named DOWNLOADING_STATS_TEXT
Lnet/minecraft/client/gui/screen/StatsScreen;DOWNLOADING_STATS_TEXT:Lnet/minecraft/text/Text;
-
NONE_TEXT
- Mappings:
Namespace Name Mixin selector official o
Leys;o:Ltl;
intermediary field_46185
Lnet/minecraft/class_447;field_46185:Lnet/minecraft/class_2561;
named NONE_TEXT
Lnet/minecraft/client/gui/screen/StatsScreen;NONE_TEXT:Lnet/minecraft/text/Text;
-
field_32282
private static final int field_32282- See Also:
- Mappings:
Namespace Name Mixin selector official w
Leys;w:I
intermediary field_32282
Lnet/minecraft/class_447;field_32282:I
named field_32282
Lnet/minecraft/client/gui/screen/StatsScreen;field_32282:I
-
field_32283
private static final int field_32283- See Also:
- Mappings:
Namespace Name Mixin selector official x
Leys;x:I
intermediary field_32283
Lnet/minecraft/class_447;field_32283:I
named field_32283
Lnet/minecraft/client/gui/screen/StatsScreen;field_32283:I
-
field_32284
private static final int field_32284- See Also:
- Mappings:
Namespace Name Mixin selector official y
Leys;y:I
intermediary field_32284
Lnet/minecraft/class_447;field_32284:I
named field_32284
Lnet/minecraft/client/gui/screen/StatsScreen;field_32284:I
-
field_32285
private static final int field_32285- See Also:
- Mappings:
Namespace Name Mixin selector official z
Leys;z:I
intermediary field_32285
Lnet/minecraft/class_447;field_32285:I
named field_32285
Lnet/minecraft/client/gui/screen/StatsScreen;field_32285:I
-
field_32274
private static final int field_32274- See Also:
- Mappings:
Namespace Name Mixin selector official A
Leys;A:I
intermediary field_32274
Lnet/minecraft/class_447;field_32274:I
named field_32274
Lnet/minecraft/client/gui/screen/StatsScreen;field_32274:I
-
field_32275
private static final int field_32275- See Also:
- Mappings:
Namespace Name Mixin selector official B
Leys;B:I
intermediary field_32275
Lnet/minecraft/class_447;field_32275:I
named field_32275
Lnet/minecraft/client/gui/screen/StatsScreen;field_32275:I
-
field_32276
private static final int field_32276- See Also:
- Mappings:
Namespace Name Mixin selector official C
Leys;C:I
intermediary field_32276
Lnet/minecraft/class_447;field_32276:I
named field_32276
Lnet/minecraft/client/gui/screen/StatsScreen;field_32276:I
-
field_32277
private static final int field_32277- See Also:
- Mappings:
Namespace Name Mixin selector official D
Leys;D:I
intermediary field_32277
Lnet/minecraft/class_447;field_32277:I
named field_32277
Lnet/minecraft/client/gui/screen/StatsScreen;field_32277:I
-
field_32278
private static final int field_32278- See Also:
- Mappings:
Namespace Name Mixin selector official E
Leys;E:I
intermediary field_32278
Lnet/minecraft/class_447;field_32278:I
named field_32278
Lnet/minecraft/client/gui/screen/StatsScreen;field_32278:I
-
field_32279
private static final int field_32279- See Also:
- Mappings:
Namespace Name Mixin selector official F
Leys;F:I
intermediary field_32279
Lnet/minecraft/class_447;field_32279:I
named field_32279
Lnet/minecraft/client/gui/screen/StatsScreen;field_32279:I
-
field_32280
private static final int field_32280- See Also:
- Mappings:
Namespace Name Mixin selector official G
Leys;G:I
intermediary field_32280
Lnet/minecraft/class_447;field_32280:I
named field_32280
Lnet/minecraft/client/gui/screen/StatsScreen;field_32280:I
-
parent
- Mappings:
Namespace Name Mixin selector official a
Leys;a:Leyk;
intermediary field_2648
Lnet/minecraft/class_447;field_2648:Lnet/minecraft/class_437;
named parent
Lnet/minecraft/client/gui/screen/StatsScreen;parent:Lnet/minecraft/client/gui/screen/Screen;
-
generalStats
- Mappings:
Namespace Name Mixin selector official p
Leys;p:Leys$a;
intermediary field_2644
Lnet/minecraft/class_447;field_2644:Lnet/minecraft/class_447$class_4198;
named generalStats
Lnet/minecraft/client/gui/screen/StatsScreen;generalStats:Lnet/minecraft/client/gui/screen/StatsScreen$GeneralStatsListWidget;
-
itemStats
StatsScreen.ItemStatsListWidget itemStats- Mappings:
Namespace Name Mixin selector official q
Leys;q:Leys$b;
intermediary field_2642
Lnet/minecraft/class_447;field_2642:Lnet/minecraft/class_447$class_4200;
named itemStats
Lnet/minecraft/client/gui/screen/StatsScreen;itemStats:Lnet/minecraft/client/gui/screen/StatsScreen$ItemStatsListWidget;
-
mobStats
- Mappings:
Namespace Name Mixin selector official s
Leys;s:Leys$c;
intermediary field_2646
Lnet/minecraft/class_447;field_2646:Lnet/minecraft/class_447$class_4202;
named mobStats
Lnet/minecraft/client/gui/screen/StatsScreen;mobStats:Lnet/minecraft/client/gui/screen/StatsScreen$EntityStatsListWidget;
-
statHandler
- Mappings:
Namespace Name Mixin selector official t
Leys;t:Lapo;
intermediary field_2647
Lnet/minecraft/class_447;field_2647:Lnet/minecraft/class_3469;
named statHandler
Lnet/minecraft/client/gui/screen/StatsScreen;statHandler:Lnet/minecraft/stat/StatHandler;
-
selectedList
- Mappings:
Namespace Name Mixin selector official u
Leys;u:Letm;
intermediary field_2643
Lnet/minecraft/class_447;field_2643:Lnet/minecraft/class_4280;
named selectedList
Lnet/minecraft/client/gui/screen/StatsScreen;selectedList:Lnet/minecraft/client/gui/widget/AlwaysSelectedEntryListWidget;
-
downloadingStats
private boolean downloadingStats- Mappings:
Namespace Name Mixin selector official v
Leys;v:Z
intermediary field_2645
Lnet/minecraft/class_447;field_2645:Z
named downloadingStats
Lnet/minecraft/client/gui/screen/StatsScreen;downloadingStats:Z
-
-
Constructor Details
-
StatsScreen
- Mappings:
Namespace Name Mixin selector official <init>
Leys;<init>(Leyk;Lapo;)V
intermediary <init>
Lnet/minecraft/class_447;<init>(Lnet/minecraft/class_437;Lnet/minecraft/class_3469;)V
named <init>
Lnet/minecraft/client/gui/screen/StatsScreen;<init>(Lnet/minecraft/client/gui/screen/Screen;Lnet/minecraft/stat/StatHandler;)V
-
-
Method Details
-
init
protected void init()Called when a screen should be initialized.This method is called when this screen is opened or resized.
This should call
Screen.setInitialFocus(net.minecraft.client.gui.Element)
to set the element that is initially focused. -
createLists
public void createLists()- Mappings:
Namespace Name Mixin selector official l
Leys;l()V
intermediary method_2270
Lnet/minecraft/class_447;method_2270()V
named createLists
Lnet/minecraft/client/gui/screen/StatsScreen;createLists()V
-
createButtons
public void createButtons()- Mappings:
Namespace Name Mixin selector official D
Leys;D()V
intermediary method_2267
Lnet/minecraft/class_447;method_2267()V
named createButtons
Lnet/minecraft/client/gui/screen/StatsScreen;createButtons()V
-
render
- Specified by:
render
in interfaceDrawable
- Overrides:
render
in classScreen
- Mappings:
Namespace Name Mixin selector official a
Lets;a(Lesf;IIF)V
intermediary method_25394
Lnet/minecraft/class_4068;method_25394(Lnet/minecraft/class_332;IIF)V
named render
Lnet/minecraft/client/gui/Drawable;render(Lnet/minecraft/client/gui/DrawContext;IIF)V
-
renderBackground
Renders the background of this screen.If the client is in a world, renders the translucent background gradient. Otherwise renders the background texture.
- Overrides:
renderBackground
in classScreen
- Mappings:
Namespace Name Mixin selector official b
Leyk;b(Lesf;IIF)V
intermediary method_25420
Lnet/minecraft/class_437;method_25420(Lnet/minecraft/class_332;IIF)V
named renderBackground
Lnet/minecraft/client/gui/screen/Screen;renderBackground(Lnet/minecraft/client/gui/DrawContext;IIF)V
-
onStatsReady
public void onStatsReady()- Specified by:
onStatsReady
in interfaceStatsListener
- Mappings:
Namespace Name Mixin selector official E
Leyt;E()V
intermediary method_2300
Lnet/minecraft/class_452;method_2300()V
named onStatsReady
Lnet/minecraft/client/gui/screen/StatsListener;onStatsReady()V
-
shouldPause
public boolean shouldPause()- Overrides:
shouldPause
in classScreen
- Mappings:
Namespace Name Mixin selector official j
Leyk;j()Z
intermediary method_25421
Lnet/minecraft/class_437;method_25421()Z
named shouldPause
Lnet/minecraft/client/gui/screen/Screen;shouldPause()Z
-
getSelectedStatList
- Mappings:
Namespace Name Mixin selector official F
Leys;F()Letm;
intermediary method_19399
Lnet/minecraft/class_447;method_19399()Lnet/minecraft/class_4280;
named getSelectedStatList
Lnet/minecraft/client/gui/screen/StatsScreen;getSelectedStatList()Lnet/minecraft/client/gui/widget/AlwaysSelectedEntryListWidget;
-
selectStatList
- Mappings:
Namespace Name Mixin selector official a
Leys;a(Letm;)V
intermediary method_19390
Lnet/minecraft/class_447;method_19390(Lnet/minecraft/class_4280;)V
named selectStatList
Lnet/minecraft/client/gui/screen/StatsScreen;selectStatList(Lnet/minecraft/client/gui/widget/AlwaysSelectedEntryListWidget;)V
-
getStatTranslationKey
- Mappings:
Namespace Name Mixin selector official a
Leys;a(Lapk;)Ljava/lang/String;
intermediary method_27027
Lnet/minecraft/class_447;method_27027(Lnet/minecraft/class_3445;)Ljava/lang/String;
named getStatTranslationKey
Lnet/minecraft/client/gui/screen/StatsScreen;getStatTranslationKey(Lnet/minecraft/stat/Stat;)Ljava/lang/String;
-
getColumnX
int getColumnX(int index) - Mappings:
Namespace Name Mixin selector official a
Leys;a(I)I
intermediary method_2285
Lnet/minecraft/class_447;method_2285(I)I
named getColumnX
Lnet/minecraft/client/gui/screen/StatsScreen;getColumnX(I)I
-
renderStatItem
- Mappings:
Namespace Name Mixin selector official a
Leys;a(Lesf;IILcja;)V
intermediary method_2289
Lnet/minecraft/class_447;method_2289(Lnet/minecraft/class_332;IILnet/minecraft/class_1792;)V
named renderStatItem
Lnet/minecraft/client/gui/screen/StatsScreen;renderStatItem(Lnet/minecraft/client/gui/DrawContext;IILnet/minecraft/item/Item;)V
-
renderIcon
- Mappings:
Namespace Name Mixin selector official a
Leys;a(Lesf;IILaew;)V
intermediary method_2282
Lnet/minecraft/class_447;method_2282(Lnet/minecraft/class_332;IILnet/minecraft/class_2960;)V
named renderIcon
Lnet/minecraft/client/gui/screen/StatsScreen;renderIcon(Lnet/minecraft/client/gui/DrawContext;IILnet/minecraft/util/Identifier;)V
-