Package net.minecraft.client.gui.screen
Class StatsScreen
java.lang.Object
net.minecraft.client.gui.DrawableHelper
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 esbintermediary 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 intprivate static final int(package private) StatsScreen.ItemStatsListWidgetprotected final Screenprivate @Nullable AlwaysSelectedEntryListWidget<?>(package private) final StatHandlerFields inherited from class net.minecraft.client.gui.screen.Screen
client, height, itemRenderer, passEvents, textRenderer, title, widthFields inherited from class net.minecraft.client.gui.DrawableHelper
GUI_ICONS_TEXTURE, OPTIONS_BACKGROUND_TEXTURE, STATS_ICON_TEXTUREFields 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(MatrixStack matrices, int mouseX, int mouseY, float delta) (package private) voidrenderIcon(MatrixStack matrices, int x, int y, int u, int v) (package private) voidrenderStatItem(MatrixStack matrices, 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, getNarratedTitle, getNavigationFocus, getTitle, getTooltipFromItem, handleTextClick, hasAltDown, hasControlDown, hasShiftDown, hasUsageText, hide, init, initTabNavigation, insertText, isCopy, isCut, isMouseOver, isPaste, isSelectAll, isValidCharacterForName, keyPressed, narrateScreenIfNarrationEnabled, remove, removed, renderBackground, renderBackgroundTexture, renderOrderedTooltip, renderTextHoverEffect, renderTooltip, renderTooltip, renderTooltip, renderTooltip, 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 net.minecraft.client.gui.DrawableHelper
disableScissor, drawCenteredTextWithShadow, drawCenteredTextWithShadow, drawCenteredTextWithShadow, drawHorizontalLine, drawNineSlicedTexture, drawNineSlicedTexture, drawRepeatingTexture, drawSprite, drawSprite, drawTexture, drawTexture, drawTexture, drawTexture, drawTextWithShadow, drawTextWithShadow, drawTextWithShadow, drawVerticalLine, drawWithOutline, enableScissor, fill, fill, fillGradient, fillGradient, fillGradient, getZOffset, setZOffsetMethods 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
-
DOWNLOADING_STATS_TEXT
- Mappings:
Namespace Name Mixin selector official cLesb;c:Ltd;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;
-
field_32281
private static final int field_32281- See Also:
- Mappings:
Namespace Name Mixin selector official tLesb;t:Iintermediary field_32281Lnet/minecraft/class_447;field_32281:Inamed field_32281Lnet/minecraft/client/gui/screen/StatsScreen;field_32281:I
-
field_32282
private static final int field_32282- See Also:
- Mappings:
Namespace Name Mixin selector official uLesb;u: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 vLesb;v: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 wLesb;w: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 xLesb;x: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 yLesb;y: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 zLesb;z: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 ALesb;A: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 BLesb;B: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 CLesb;C: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 DLesb;D: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 ELesb;E: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 aLesb;a:Lert;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 nLesb;n:Lesb$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 oLesb;o:Lesb$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 pLesb;p:Lesb$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 qLesb;q:Lamv;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 rLesb;r:Lenn;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 sLesb;s: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>Lesb;<init>(Lert;Lamv;)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 jLesb;j()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 BLesb;B()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 aLens;a(Lega;IIF)Vintermediary method_25394Lnet/minecraft/class_4068;method_25394(Lnet/minecraft/class_4587;IIF)Vnamed renderLnet/minecraft/client/gui/Drawable;render(Lnet/minecraft/client/util/math/MatrixStack;IIF)V
-
onStatsReady
public void onStatsReady()- Specified by:
onStatsReadyin interfaceStatsListener- Mappings:
Namespace Name Mixin selector official CLesc;C()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 av_Lert;av_()Zintermediary method_25421Lnet/minecraft/class_437;method_25421()Znamed shouldPauseLnet/minecraft/client/gui/screen/Screen;shouldPause()Z
-
getSelectedStatList
- Mappings:
Namespace Name Mixin selector official DLesb;D()Lenn;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 aLesb;a(Lenn;)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 aLesb;a(Lamr;)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 aLesb;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 aLesb;a(Lega;IILcfc;)Vintermediary method_2289Lnet/minecraft/class_447;method_2289(Lnet/minecraft/class_4587;IILnet/minecraft/class_1792;)Vnamed renderStatItemLnet/minecraft/client/gui/screen/StatsScreen;renderStatItem(Lnet/minecraft/client/util/math/MatrixStack;IILnet/minecraft/item/Item;)V
-
renderIcon
- Mappings:
Namespace Name Mixin selector official cLesb;c(Lega;IIII)Vintermediary method_2282Lnet/minecraft/class_447;method_2282(Lnet/minecraft/class_4587;IIII)Vnamed renderIconLnet/minecraft/client/gui/screen/StatsScreen;renderIcon(Lnet/minecraft/client/util/math/MatrixStack;IIII)V
-