Package net.minecraft.client.gui.screen
Class StatsScreen.ItemStatsListWidget
java.lang.Object
net.minecraft.client.gui.DrawableHelper
net.minecraft.client.gui.AbstractParentElement
net.minecraft.client.gui.widget.EntryListWidget<E>
net.minecraft.client.gui.widget.AlwaysSelectedEntryListWidget<StatsScreen.ItemStatsListWidget.Entry>
net.minecraft.client.gui.screen.StatsScreen.ItemStatsListWidget
- All Implemented Interfaces:
Drawable
,Element
,ParentElement
- Enclosing class:
- StatsScreen
@Environment(CLIENT) class StatsScreen.ItemStatsListWidget extends AlwaysSelectedEntryListWidget<StatsScreen.ItemStatsListWidget.Entry>
- Mappings:
Namespace Name official dvm$b
intermediary net/minecraft/class_447$class_4200
named net/minecraft/client/gui/screen/StatsScreen$ItemStatsListWidget
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) class
StatsScreen.ItemStatsListWidget.Entry
(package private) class
StatsScreen.ItemStatsListWidget.ItemComparator
Nested classes/interfaces inherited from class net.minecraft.client.gui.widget.EntryListWidget
EntryListWidget.MoveDirection
-
Field Summary
Fields Modifier and Type Field Description protected List<StatType<Block>>
blockStatTypes
protected Comparator<Item>
comparator
protected int
field_18760
private int[]
HEADER_ICON_SPRITE_INDICES
protected List<Item>
items
protected List<StatType<Item>>
itemStatTypes
protected int
selectedHeaderColumn
protected StatType<?>
selectedStatType
Fields inherited from class net.minecraft.client.gui.widget.EntryListWidget
bottom, centerListVertically, client, headerHeight, height, itemHeight, left, right, top, width
Fields inherited from class net.minecraft.client.gui.DrawableHelper
GUI_ICONS_TEXTURE, OPTIONS_BACKGROUND_TEXTURE, STATS_ICON_TEXTURE
-
Constructor Summary
Constructors Constructor Description ItemStatsListWidget(MinecraftClient client)
-
Method Summary
Modifier and Type Method Description protected void
clickedHeader(int x, int y)
private int
getHeaderIndex(StatType<?> statType)
int
getRowWidth()
protected int
getScrollbarPositionX()
private StatType<?>
getStatType(int headerColumn)
protected Text
getText(Item item)
protected void
render(MatrixStack matrices, Text text, int int2, int int3)
protected void
renderBackground(MatrixStack matrices)
protected void
renderDecorations(MatrixStack matrices, int int2, int int3)
protected void
renderHeader(MatrixStack matrices, int x, int y, Tessellator tessellator)
protected void
selectStatType(StatType<?> statType)
Methods inherited from class net.minecraft.client.gui.widget.AlwaysSelectedEntryListWidget
changeFocus
Methods inherited from class net.minecraft.client.gui.widget.EntryListWidget
addEntry, centerScrollOn, children, clearEntries, ensureVisible, getEntry, getEntryAtPosition, getFocused, getItemCount, getMaxPosition, getMaxScroll, getRowLeft, getRowTop, getScrollAmount, getSelected, isFocused, isMouseOver, isSelectedItem, keyPressed, method_30015, method_31322, method_31323, method_31383, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, moveSelection, moveSelectionIf, remove, removeEntry, render, renderList, replaceEntries, setLeftPos, setRenderHeader, setRenderSelection, setScrollAmount, setSelected, updateScrollingState, updateSize
Methods inherited from class net.minecraft.client.gui.AbstractParentElement
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
charTyped, focusOn, hoveredElement, keyReleased, setInitialFocus
-
Field Details
-
blockStatTypes
- Mappings:
Namespace Name Mixin selector official a
Ldvm$b;a:Ljava/util/List;
intermediary field_18754
Lnet/minecraft/class_447$class_4200;field_18754:Ljava/util/List;
named blockStatTypes
Lnet/minecraft/client/gui/screen/StatsScreen$ItemStatsListWidget;blockStatTypes:Ljava/util/List;
-
itemStatTypes
- Mappings:
Namespace Name Mixin selector official o
Ldvm$b;o:Ljava/util/List;
intermediary field_18755
Lnet/minecraft/class_447$class_4200;field_18755:Ljava/util/List;
named itemStatTypes
Lnet/minecraft/client/gui/screen/StatsScreen$ItemStatsListWidget;itemStatTypes:Ljava/util/List;
-
HEADER_ICON_SPRITE_INDICES
private final int[] HEADER_ICON_SPRITE_INDICES- Mappings:
Namespace Name Mixin selector official v
Ldvm$b;v:[I
intermediary field_18753
Lnet/minecraft/class_447$class_4200;field_18753:[I
named HEADER_ICON_SPRITE_INDICES
Lnet/minecraft/client/gui/screen/StatsScreen$ItemStatsListWidget;HEADER_ICON_SPRITE_INDICES:[I
-
selectedHeaderColumn
protected int selectedHeaderColumn- Mappings:
Namespace Name Mixin selector official p
Ldvm$b;p:I
intermediary field_18756
Lnet/minecraft/class_447$class_4200;field_18756:I
named selectedHeaderColumn
Lnet/minecraft/client/gui/screen/StatsScreen$ItemStatsListWidget;selectedHeaderColumn:I
-
items
- Mappings:
Namespace Name Mixin selector official q
Ldvm$b;q:Ljava/util/List;
intermediary field_18757
Lnet/minecraft/class_447$class_4200;field_18757:Ljava/util/List;
named items
Lnet/minecraft/client/gui/screen/StatsScreen$ItemStatsListWidget;items:Ljava/util/List;
-
comparator
- Mappings:
Namespace Name Mixin selector official r
Ldvm$b;r:Ljava/util/Comparator;
intermediary field_18758
Lnet/minecraft/class_447$class_4200;field_18758:Ljava/util/Comparator;
named comparator
Lnet/minecraft/client/gui/screen/StatsScreen$ItemStatsListWidget;comparator:Ljava/util/Comparator;
-
selectedStatType
- Mappings:
Namespace Name Mixin selector official s
Ldvm$b;s:Laep;
intermediary field_18759
Lnet/minecraft/class_447$class_4200;field_18759:Lnet/minecraft/class_3448;
named selectedStatType
Lnet/minecraft/client/gui/screen/StatsScreen$ItemStatsListWidget;selectedStatType:Lnet/minecraft/stat/StatType;
-
field_18760
protected int field_18760- Mappings:
Namespace Name Mixin selector official t
Ldvm$b;t:I
intermediary field_18760
Lnet/minecraft/class_447$class_4200;field_18760:I
named field_18760
Lnet/minecraft/client/gui/screen/StatsScreen$ItemStatsListWidget;field_18760:I
-
-
Constructor Details
-
ItemStatsListWidget
- Mappings:
Namespace Name Mixin selector official <init>
Ldvm$b;<init>(Ldvm;Ldqk;)V
intermediary <init>
Lnet/minecraft/class_447$class_4200;<init>(Lnet/minecraft/class_447;Lnet/minecraft/class_310;)V
named <init>
Lnet/minecraft/client/gui/screen/StatsScreen$ItemStatsListWidget;<init>(Lnet/minecraft/client/gui/screen/StatsScreen;Lnet/minecraft/client/MinecraftClient;)V
-
-
Method Details
-
renderHeader
- Overrides:
renderHeader
in classEntryListWidget<StatsScreen.ItemStatsListWidget.Entry>
- Mappings:
Namespace Name Mixin selector official a
Ldrq;a(Ldlr;IILdlt;)V
intermediary method_25312
Lnet/minecraft/class_350;method_25312(Lnet/minecraft/class_4587;IILnet/minecraft/class_289;)V
named renderHeader
Lnet/minecraft/client/gui/widget/EntryListWidget;renderHeader(Lnet/minecraft/client/util/math/MatrixStack;IILnet/minecraft/client/render/Tessellator;)V
-
getRowWidth
public int getRowWidth()- Overrides:
getRowWidth
in classEntryListWidget<StatsScreen.ItemStatsListWidget.Entry>
- Mappings:
Namespace Name Mixin selector official d
Ldrq;d()I
intermediary method_25322
Lnet/minecraft/class_350;method_25322()I
named getRowWidth
Lnet/minecraft/client/gui/widget/EntryListWidget;getRowWidth()I
-
getScrollbarPositionX
protected int getScrollbarPositionX()- Overrides:
getScrollbarPositionX
in classEntryListWidget<StatsScreen.ItemStatsListWidget.Entry>
- Mappings:
Namespace Name Mixin selector official e
Ldrq;e()I
intermediary method_25329
Lnet/minecraft/class_350;method_25329()I
named getScrollbarPositionX
Lnet/minecraft/client/gui/widget/EntryListWidget;getScrollbarPositionX()I
-
renderBackground
- Overrides:
renderBackground
in classEntryListWidget<StatsScreen.ItemStatsListWidget.Entry>
- Mappings:
Namespace Name Mixin selector official a
Ldrq;a(Ldlr;)V
intermediary method_25325
Lnet/minecraft/class_350;method_25325(Lnet/minecraft/class_4587;)V
named renderBackground
Lnet/minecraft/client/gui/widget/EntryListWidget;renderBackground(Lnet/minecraft/client/util/math/MatrixStack;)V
-
clickedHeader
protected void clickedHeader(int x, int y)- Overrides:
clickedHeader
in classEntryListWidget<StatsScreen.ItemStatsListWidget.Entry>
- Mappings:
Namespace Name Mixin selector official a
Ldrq;a(II)V
intermediary method_25310
Lnet/minecraft/class_350;method_25310(II)V
named clickedHeader
Lnet/minecraft/client/gui/widget/EntryListWidget;clickedHeader(II)V
-
getStatType
- Mappings:
Namespace Name Mixin selector official a
Ldvm$b;a(I)Laep;
intermediary method_19410
Lnet/minecraft/class_447$class_4200;method_19410(I)Lnet/minecraft/class_3448;
named getStatType
Lnet/minecraft/client/gui/screen/StatsScreen$ItemStatsListWidget;getStatType(I)Lnet/minecraft/stat/StatType;
-
getHeaderIndex
- Mappings:
Namespace Name Mixin selector official b
Ldvm$b;b(Laep;)I
intermediary method_19409
Lnet/minecraft/class_447$class_4200;method_19409(Lnet/minecraft/class_3448;)I
named getHeaderIndex
Lnet/minecraft/client/gui/screen/StatsScreen$ItemStatsListWidget;getHeaderIndex(Lnet/minecraft/stat/StatType;)I
-
renderDecorations
- Overrides:
renderDecorations
in classEntryListWidget<StatsScreen.ItemStatsListWidget.Entry>
- Mappings:
Namespace Name Mixin selector official a
Ldrq;a(Ldlr;II)V
intermediary method_25320
Lnet/minecraft/class_350;method_25320(Lnet/minecraft/class_4587;II)V
named renderDecorations
Lnet/minecraft/client/gui/widget/EntryListWidget;renderDecorations(Lnet/minecraft/client/util/math/MatrixStack;II)V
-
render
- Mappings:
Namespace Name Mixin selector official a
Ldvm$b;a(Ldlr;Loi;II)V
intermediary method_19407
Lnet/minecraft/class_447$class_4200;method_19407(Lnet/minecraft/class_4587;Lnet/minecraft/class_2561;II)V
named render
Lnet/minecraft/client/gui/screen/StatsScreen$ItemStatsListWidget;render(Lnet/minecraft/client/util/math/MatrixStack;Lnet/minecraft/text/Text;II)V
-
getText
- Mappings:
Namespace Name Mixin selector official a
Ldvm$b;a(Lbnr;)Loi;
intermediary method_19406
Lnet/minecraft/class_447$class_4200;method_19406(Lnet/minecraft/class_1792;)Lnet/minecraft/class_2561;
named getText
Lnet/minecraft/client/gui/screen/StatsScreen$ItemStatsListWidget;getText(Lnet/minecraft/item/Item;)Lnet/minecraft/text/Text;
-
selectStatType
- Mappings:
Namespace Name Mixin selector official a
Ldvm$b;a(Laep;)V
intermediary method_19408
Lnet/minecraft/class_447$class_4200;method_19408(Lnet/minecraft/class_3448;)V
named selectStatType
Lnet/minecraft/client/gui/screen/StatsScreen$ItemStatsListWidget;selectStatType(Lnet/minecraft/stat/StatType;)V
-