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 eyuintermediary net/minecraft/class_447named net/minecraft/client/gui/screen/StatsScreen
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate classprivate classprivate classNested classes/interfaces inherited from class net.minecraft.client.gui.screen.Screen
Screen.SelectedElementNarrationData -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Textprivate booleanprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intprivate static final intprivate static final int(package private) static final Identifier(package private) StatsScreen.ItemStatsListWidget(package private) static final Textprotected final Screenprivate @Nullable AlwaysSelectedEntryListWidget<?>(package private) static final Identifier(package private) static final Identifier(package private) static final Identifier(package private) final StatHandlerFields inherited from class net.minecraft.client.gui.screen.Screen
client, executor, height, OPTIONS_BACKGROUND_TEXTURE, textRenderer, title, widthFields inherited from interface net.minecraft.client.gui.Element
MAX_DOUBLE_CLICK_INTERVALFields inherited from interface net.minecraft.client.gui.screen.StatsListener
PROGRESS_BAR_STAGES -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoid(package private) intgetColumnX(int index) (package private) static StringgetStatTranslationKey(Stat<Identifier> stat) protected voidinit()Called when a screen should be initialized.voidvoidrender(DrawContext context, int mouseX, int mouseY, float delta) voidrenderBackground(DrawContext context, int mouseX, int mouseY, float delta) Renders the background of this screen.(package private) voidrenderIcon(DrawContext context, int x, int y, Identifier texture) (package private) voidrenderStatItem(DrawContext context, int x, int y, Item item) voidbooleanMethods 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, wrapScreenErrorMethods inherited from class net.minecraft.client.gui.AbstractParentElement
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.Element
mouseMovedMethods inherited from interface net.minecraft.client.gui.navigation.Navigable
getNavigationOrderMethods 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 cLeyu;c:Laey;intermediary field_45418Lnet/minecraft/class_447;field_45418:Lnet/minecraft/class_2960;named SLOT_TEXTURELnet/minecraft/client/gui/screen/StatsScreen;SLOT_TEXTURE:Lnet/minecraft/util/Identifier;
-
HEADER_TEXTURE
- Mappings:
Namespace Name Mixin selector official kLeyu;k:Laey;intermediary field_45419Lnet/minecraft/class_447;field_45419:Lnet/minecraft/class_2960;named HEADER_TEXTURELnet/minecraft/client/gui/screen/StatsScreen;HEADER_TEXTURE:Lnet/minecraft/util/Identifier;
-
SORT_UP_TEXTURE
- Mappings:
Namespace Name Mixin selector official lLeyu;l:Laey;intermediary field_45420Lnet/minecraft/class_447;field_45420:Lnet/minecraft/class_2960;named SORT_UP_TEXTURELnet/minecraft/client/gui/screen/StatsScreen;SORT_UP_TEXTURE:Lnet/minecraft/util/Identifier;
-
SORT_DOWN_TEXTURE
- Mappings:
Namespace Name Mixin selector official mLeyu;m:Laey;intermediary field_45421Lnet/minecraft/class_447;field_45421:Lnet/minecraft/class_2960;named SORT_DOWN_TEXTURELnet/minecraft/client/gui/screen/StatsScreen;SORT_DOWN_TEXTURE:Lnet/minecraft/util/Identifier;
-
DOWNLOADING_STATS_TEXT
- Mappings:
Namespace Name Mixin selector official nLeyu;n:Ltn;intermediary field_26546Lnet/minecraft/class_447;field_26546:Lnet/minecraft/class_2561;named DOWNLOADING_STATS_TEXTLnet/minecraft/client/gui/screen/StatsScreen;DOWNLOADING_STATS_TEXT:Lnet/minecraft/text/Text;
-
NONE_TEXT
- Mappings:
Namespace Name Mixin selector official oLeyu;o:Ltn;intermediary field_46185Lnet/minecraft/class_447;field_46185:Lnet/minecraft/class_2561;named NONE_TEXTLnet/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 wLeyu;w:Iintermediary field_32282Lnet/minecraft/class_447;field_32282:Inamed field_32282Lnet/minecraft/client/gui/screen/StatsScreen;field_32282:I
-
field_32283
private static final int field_32283- See Also:
- Mappings:
Namespace Name Mixin selector official xLeyu;x:Iintermediary field_32283Lnet/minecraft/class_447;field_32283:Inamed field_32283Lnet/minecraft/client/gui/screen/StatsScreen;field_32283:I
-
field_32284
private static final int field_32284- See Also:
- Mappings:
Namespace Name Mixin selector official yLeyu;y:Iintermediary field_32284Lnet/minecraft/class_447;field_32284:Inamed field_32284Lnet/minecraft/client/gui/screen/StatsScreen;field_32284:I
-
field_32285
private static final int field_32285- See Also:
- Mappings:
Namespace Name Mixin selector official zLeyu;z:Iintermediary field_32285Lnet/minecraft/class_447;field_32285:Inamed field_32285Lnet/minecraft/client/gui/screen/StatsScreen;field_32285:I
-
field_32274
private static final int field_32274- See Also:
- Mappings:
Namespace Name Mixin selector official ALeyu;A:Iintermediary field_32274Lnet/minecraft/class_447;field_32274:Inamed field_32274Lnet/minecraft/client/gui/screen/StatsScreen;field_32274:I
-
field_32275
private static final int field_32275- See Also:
- Mappings:
Namespace Name Mixin selector official BLeyu;B:Iintermediary field_32275Lnet/minecraft/class_447;field_32275:Inamed field_32275Lnet/minecraft/client/gui/screen/StatsScreen;field_32275:I
-
field_32276
private static final int field_32276- See Also:
- Mappings:
Namespace Name Mixin selector official CLeyu;C:Iintermediary field_32276Lnet/minecraft/class_447;field_32276:Inamed field_32276Lnet/minecraft/client/gui/screen/StatsScreen;field_32276:I
-
field_32277
private static final int field_32277- See Also:
- Mappings:
Namespace Name Mixin selector official DLeyu;D:Iintermediary field_32277Lnet/minecraft/class_447;field_32277:Inamed field_32277Lnet/minecraft/client/gui/screen/StatsScreen;field_32277:I
-
field_32278
private static final int field_32278- See Also:
- Mappings:
Namespace Name Mixin selector official ELeyu;E:Iintermediary field_32278Lnet/minecraft/class_447;field_32278:Inamed field_32278Lnet/minecraft/client/gui/screen/StatsScreen;field_32278:I
-
field_32279
private static final int field_32279- See Also:
- Mappings:
Namespace Name Mixin selector official FLeyu;F:Iintermediary field_32279Lnet/minecraft/class_447;field_32279:Inamed field_32279Lnet/minecraft/client/gui/screen/StatsScreen;field_32279:I
-
field_32280
private static final int field_32280- See Also:
- Mappings:
Namespace Name Mixin selector official GLeyu;G:Iintermediary field_32280Lnet/minecraft/class_447;field_32280:Inamed field_32280Lnet/minecraft/client/gui/screen/StatsScreen;field_32280:I
-
parent
- Mappings:
Namespace Name Mixin selector official aLeyu;a:Leym;intermediary field_2648Lnet/minecraft/class_447;field_2648:Lnet/minecraft/class_437;named parentLnet/minecraft/client/gui/screen/StatsScreen;parent:Lnet/minecraft/client/gui/screen/Screen;
-
generalStats
- Mappings:
Namespace Name Mixin selector official pLeyu;p:Leyu$a;intermediary field_2644Lnet/minecraft/class_447;field_2644:Lnet/minecraft/class_447$class_4198;named generalStatsLnet/minecraft/client/gui/screen/StatsScreen;generalStats:Lnet/minecraft/client/gui/screen/StatsScreen$GeneralStatsListWidget;
-
itemStats
StatsScreen.ItemStatsListWidget itemStats- Mappings:
Namespace Name Mixin selector official qLeyu;q:Leyu$b;intermediary field_2642Lnet/minecraft/class_447;field_2642:Lnet/minecraft/class_447$class_4200;named itemStatsLnet/minecraft/client/gui/screen/StatsScreen;itemStats:Lnet/minecraft/client/gui/screen/StatsScreen$ItemStatsListWidget;
-
mobStats
- Mappings:
Namespace Name Mixin selector official sLeyu;s:Leyu$c;intermediary field_2646Lnet/minecraft/class_447;field_2646:Lnet/minecraft/class_447$class_4202;named mobStatsLnet/minecraft/client/gui/screen/StatsScreen;mobStats:Lnet/minecraft/client/gui/screen/StatsScreen$EntityStatsListWidget;
-
statHandler
- Mappings:
Namespace Name Mixin selector official tLeyu;t:Lapq;intermediary field_2647Lnet/minecraft/class_447;field_2647:Lnet/minecraft/class_3469;named statHandlerLnet/minecraft/client/gui/screen/StatsScreen;statHandler:Lnet/minecraft/stat/StatHandler;
-
selectedList
- Mappings:
Namespace Name Mixin selector official uLeyu;u:Leto;intermediary field_2643Lnet/minecraft/class_447;field_2643:Lnet/minecraft/class_4280;named selectedListLnet/minecraft/client/gui/screen/StatsScreen;selectedList:Lnet/minecraft/client/gui/widget/AlwaysSelectedEntryListWidget;
-
downloadingStats
private boolean downloadingStats- Mappings:
Namespace Name Mixin selector official vLeyu;v:Zintermediary field_2645Lnet/minecraft/class_447;field_2645:Znamed downloadingStatsLnet/minecraft/client/gui/screen/StatsScreen;downloadingStats:Z
-
-
Constructor Details
-
StatsScreen
- Mappings:
Namespace Name Mixin selector official <init>Leyu;<init>(Leym;Lapq;)Vintermediary <init>Lnet/minecraft/class_447;<init>(Lnet/minecraft/class_437;Lnet/minecraft/class_3469;)Vnamed <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 lLeyu;l()Vintermediary method_2270Lnet/minecraft/class_447;method_2270()Vnamed createListsLnet/minecraft/client/gui/screen/StatsScreen;createLists()V
-
createButtons
public void createButtons()- Mappings:
Namespace Name Mixin selector official DLeyu;D()Vintermediary method_2267Lnet/minecraft/class_447;method_2267()Vnamed createButtonsLnet/minecraft/client/gui/screen/StatsScreen;createButtons()V
-
render
- Specified by:
renderin interfaceDrawable- Overrides:
renderin classScreen- Mappings:
Namespace Name Mixin selector official aLetu;a(Lesh;IIF)Vintermediary method_25394Lnet/minecraft/class_4068;method_25394(Lnet/minecraft/class_332;IIF)Vnamed renderLnet/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:
renderBackgroundin classScreen- Mappings:
Namespace Name Mixin selector official bLeym;b(Lesh;IIF)Vintermediary method_25420Lnet/minecraft/class_437;method_25420(Lnet/minecraft/class_332;IIF)Vnamed renderBackgroundLnet/minecraft/client/gui/screen/Screen;renderBackground(Lnet/minecraft/client/gui/DrawContext;IIF)V
-
onStatsReady
public void onStatsReady()- Specified by:
onStatsReadyin interfaceStatsListener- Mappings:
Namespace Name Mixin selector official ELeyv;E()Vintermediary method_2300Lnet/minecraft/class_452;method_2300()Vnamed onStatsReadyLnet/minecraft/client/gui/screen/StatsListener;onStatsReady()V
-
shouldPause
public boolean shouldPause()- Overrides:
shouldPausein classScreen- Mappings:
Namespace Name Mixin selector official jLeym;j()Zintermediary method_25421Lnet/minecraft/class_437;method_25421()Znamed shouldPauseLnet/minecraft/client/gui/screen/Screen;shouldPause()Z
-
getSelectedStatList
- Mappings:
Namespace Name Mixin selector official FLeyu;F()Leto;intermediary method_19399Lnet/minecraft/class_447;method_19399()Lnet/minecraft/class_4280;named getSelectedStatListLnet/minecraft/client/gui/screen/StatsScreen;getSelectedStatList()Lnet/minecraft/client/gui/widget/AlwaysSelectedEntryListWidget;
-
selectStatList
- Mappings:
Namespace Name Mixin selector official aLeyu;a(Leto;)Vintermediary method_19390Lnet/minecraft/class_447;method_19390(Lnet/minecraft/class_4280;)Vnamed selectStatListLnet/minecraft/client/gui/screen/StatsScreen;selectStatList(Lnet/minecraft/client/gui/widget/AlwaysSelectedEntryListWidget;)V
-
getStatTranslationKey
- Mappings:
Namespace Name Mixin selector official aLeyu;a(Lapm;)Ljava/lang/String;intermediary method_27027Lnet/minecraft/class_447;method_27027(Lnet/minecraft/class_3445;)Ljava/lang/String;named getStatTranslationKeyLnet/minecraft/client/gui/screen/StatsScreen;getStatTranslationKey(Lnet/minecraft/stat/Stat;)Ljava/lang/String;
-
getColumnX
int getColumnX(int index) - Mappings:
Namespace Name Mixin selector official aLeyu;a(I)Iintermediary method_2285Lnet/minecraft/class_447;method_2285(I)Inamed getColumnXLnet/minecraft/client/gui/screen/StatsScreen;getColumnX(I)I
-
renderStatItem
- Mappings:
Namespace Name Mixin selector official aLeyu;a(Lesh;IILcjc;)Vintermediary method_2289Lnet/minecraft/class_447;method_2289(Lnet/minecraft/class_332;IILnet/minecraft/class_1792;)Vnamed renderStatItemLnet/minecraft/client/gui/screen/StatsScreen;renderStatItem(Lnet/minecraft/client/gui/DrawContext;IILnet/minecraft/item/Item;)V
-
renderIcon
- Mappings:
Namespace Name Mixin selector official aLeyu;a(Lesh;IILaey;)Vintermediary method_2282Lnet/minecraft/class_447;method_2282(Lnet/minecraft/class_332;IILnet/minecraft/class_2960;)Vnamed renderIconLnet/minecraft/client/gui/screen/StatsScreen;renderIcon(Lnet/minecraft/client/gui/DrawContext;IILnet/minecraft/util/Identifier;)V
-