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
,ParentElement
,StatsListener
,TickableElement
@Environment(CLIENT) public class StatsScreen extends Screen implements StatsListener
- Mappings:
Namespace Name official dvm
intermediary net/minecraft/class_447
named net/minecraft/client/gui/screen/StatsScreen
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) class
StatsScreen.EntityStatsListWidget
(package private) class
StatsScreen.GeneralStatsListWidget
(package private) class
StatsScreen.ItemStatsListWidget
-
Field Summary
Fields Modifier and Type Field Description private static Text
DOWNLOADING_STATS_TEXT
private boolean
downloadingStats
private StatsScreen.GeneralStatsListWidget
generalStats
private StatsScreen.ItemStatsListWidget
itemStats
private StatsScreen.EntityStatsListWidget
mobStats
protected Screen
parent
private AlwaysSelectedEntryListWidget<?>
selectedList
private StatHandler
statHandler
Fields inherited from class net.minecraft.client.gui.screen.Screen
buttons, children, client, height, itemRenderer, passEvents, textRenderer, title, width
Fields inherited from class net.minecraft.client.gui.DrawableHelper
GUI_ICONS_TEXTURE, OPTIONS_BACKGROUND_TEXTURE, STATS_ICON_TEXTURE
Fields inherited from interface net.minecraft.client.gui.screen.StatsListener
PROGRESS_BAR_STAGES
-
Constructor Summary
Constructors Constructor Description StatsScreen(Screen parent, StatHandler statHandler)
-
Method Summary
Modifier and Type Method Description void
createButtons()
void
createLists()
private int
getColumnX(int index)
AlwaysSelectedEntryListWidget<?>
getSelectedStatList()
private static String
getStatString(Stat<Identifier> stat)
protected void
init()
Called when a screen should be initialized.boolean
isPauseScreen()
void
onStatsReady()
void
render(MatrixStack matrices, int mouseX, int mouseY, float delta)
private void
renderIcon(MatrixStack matrices, int int2, int int3, int int4, int int5)
private void
renderStatItem(MatrixStack matrices, int int2, int int3, Item item)
void
selectStatList(AlwaysSelectedEntryListWidget<?> list)
Methods inherited from class net.minecraft.client.gui.screen.Screen
addButton, addChild, children, filesDragged, getNarrationMessage, getTitle, getTooltipFromItem, handleTextClick, hasAltDown, hasControlDown, hasShiftDown, init, insertText, isCopy, isCut, isMouseOver, isPaste, isSelectAll, isValidCharacterForName, keyPressed, onClose, removed, renderBackground, renderBackground, renderBackgroundTexture, renderOrderedTooltip, renderTextHoverEffect, renderTooltip, renderTooltip, renderTooltip, renderTooltip, resize, sendMessage, sendMessage, shouldCloseOnEsc, tick, wrapScreenError
Methods inherited from class net.minecraft.client.gui.AbstractParentElement
getFocused, isDragging, setDragging, setFocused
Methods inherited from class net.minecraft.client.gui.DrawableHelper
drawCenteredString, drawCenteredText, drawHorizontalLine, drawSprite, drawStringWithShadow, drawTexture, drawTexture, drawTexture, drawTexture, drawTextWithShadow, drawVerticalLine, fill, fillGradient, fillGradient, getZOffset, method_29343, method_33284, setZOffset
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.ParentElement
changeFocus, charTyped, focusOn, hoveredElement, keyReleased, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, setInitialFocus
-
Field Details
-
DOWNLOADING_STATS_TEXT
- Mappings:
Namespace Name Mixin selector official c
Ldvm;c:Loi;
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;
-
parent
- Mappings:
Namespace Name Mixin selector official a
Ldvm;a:Ldve;
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
Ldvm;p:Ldvm$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
- Mappings:
Namespace Name Mixin selector official q
Ldvm;q:Ldvm$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 r
Ldvm;r:Ldvm$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 s
Ldvm;s:Laer;
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 t
Ldvm;t:Ldsh;
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 u
Ldvm;u: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>
Ldvm;<init>(Ldve;Laer;)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.
-
createLists
public void createLists()- Mappings:
Namespace Name Mixin selector official h
Ldvm;h()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 i
Ldvm;i()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
Ldsq;a(Ldlr;IIF)V
intermediary method_25394
Lnet/minecraft/class_4068;method_25394(Lnet/minecraft/class_4587;IIF)V
named render
Lnet/minecraft/client/gui/Drawable;render(Lnet/minecraft/client/util/math/MatrixStack;IIF)V
-
onStatsReady
public void onStatsReady()- Specified by:
onStatsReady
in interfaceStatsListener
- Mappings:
Namespace Name Mixin selector official k
Ldvn;k()V
intermediary method_2300
Lnet/minecraft/class_452;method_2300()V
named onStatsReady
Lnet/minecraft/client/gui/screen/StatsListener;onStatsReady()V
-
isPauseScreen
public boolean isPauseScreen()- Overrides:
isPauseScreen
in classScreen
- Mappings:
Namespace Name Mixin selector official aD_
Ldve;aD_()Z
intermediary method_25421
Lnet/minecraft/class_437;method_25421()Z
named isPauseScreen
Lnet/minecraft/client/gui/screen/Screen;isPauseScreen()Z
-
getSelectedStatList
- Mappings:
Namespace Name Mixin selector official l
Ldvm;l()Ldsh;
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
Ldvm;a(Ldsh;)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
-
getStatString
- Mappings:
Namespace Name Mixin selector official b
Ldvm;b(Laen;)Ljava/lang/String;
intermediary method_27027
Lnet/minecraft/class_447;method_27027(Lnet/minecraft/class_3445;)Ljava/lang/String;
named getStatString
Lnet/minecraft/client/gui/screen/StatsScreen;getStatString(Lnet/minecraft/stat/Stat;)Ljava/lang/String;
-
getColumnX
private int getColumnX(int index)- Mappings:
Namespace Name Mixin selector official a
Ldvm;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
Ldvm;a(Ldlr;IILbnr;)V
intermediary method_2289
Lnet/minecraft/class_447;method_2289(Lnet/minecraft/class_4587;IILnet/minecraft/class_1792;)V
named renderStatItem
Lnet/minecraft/client/gui/screen/StatsScreen;renderStatItem(Lnet/minecraft/client/util/math/MatrixStack;IILnet/minecraft/item/Item;)V
-
renderIcon
- Mappings:
Namespace Name Mixin selector official c
Ldvm;c(Ldlr;IIII)V
intermediary method_2282
Lnet/minecraft/class_447;method_2282(Lnet/minecraft/class_4587;IIII)V
named renderIcon
Lnet/minecraft/client/gui/screen/StatsScreen;renderIcon(Lnet/minecraft/client/util/math/MatrixStack;IIII)V
-