类 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
-
- 所有已实现的接口:
Drawable,Element,ParentElement
- 封闭类:
- StatsScreen
@Environment(CLIENT) class StatsScreen.ItemStatsListWidget extends AlwaysSelectedEntryListWidget<StatsScreen.ItemStatsListWidget.Entry>
- Mappings:
Namespace Name official dzo$bintermediary net/minecraft/class_447$class_4200named net/minecraft/client/gui/screen/StatsScreen$ItemStatsListWidget
-
-
嵌套类概要
嵌套类 修饰符和类型 类 说明 (专用程序包) classStatsScreen.ItemStatsListWidget.Entry(专用程序包) classStatsScreen.ItemStatsListWidget.ItemComparator-
从类继承的嵌套类/接口 net.minecraft.client.gui.widget.EntryListWidget
EntryListWidget.MoveDirection
-
-
字段概要
字段 修饰符和类型 字段 说明 protected List<StatType<Block>>blockStatTypesprotected Comparator<Item>comparatorprotected intfield_18760private int[]HEADER_ICON_SPRITE_INDICESprotected List<Item>itemsprotected List<StatType<Item>>itemStatTypesprotected intselectedHeaderColumnprotected @Nullable StatType<?>selectedStatType-
从类继承的字段 net.minecraft.client.gui.widget.EntryListWidget
bottom, centerListVertically, client, headerHeight, height, itemHeight, left, right, top, WHITE_TEXTURE, width
-
从类继承的字段 net.minecraft.client.gui.DrawableHelper
GUI_ICONS_TEXTURE, OPTIONS_BACKGROUND_TEXTURE, STATS_ICON_TEXTURE
-
-
构造器概要
构造器 构造器 说明 ItemStatsListWidget(MinecraftClient client)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 protected voidclickedHeader(int x, int y)private intgetHeaderIndex(StatType<?> statType)intgetRowWidth()protected intgetScrollbarPositionX()private StatType<?>getStatType(int headerColumn)protected TextgetText(Item item)protected voidrender(MatrixStack matrices, @Nullable Text text, int mouseX, int mouseY)protected voidrenderBackground(MatrixStack matrices)protected voidrenderDecorations(MatrixStack matrices, int mouseX, int mouseY)protected voidrenderHeader(MatrixStack matrices, int x, int y, Tessellator tessellator)protected voidselectStatType(StatType<?> statType)-
从类继承的方法 net.minecraft.client.gui.widget.AlwaysSelectedEntryListWidget
changeFocus
-
从类继承的方法 net.minecraft.client.gui.widget.EntryListWidget
addEntry, centerScrollOn, children, clearEntries, ensureSelectedEntryVisible, ensureVisible, getEntry, getEntryAtPosition, getEntryCount, getFocused, getMaxPosition, getMaxScroll, getRowLeft, getRowRight, getRowTop, getScrollAmount, getSelected, isFocused, isMouseOver, isSelectedEntry, keyPressed, method_31322, method_31323, method_35721, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, moveSelection, moveSelectionIf, remove, removeEntry, render, renderList, replaceEntries, setLeftPos, setRenderHeader, setRenderSelection, setScrollAmount, setSelected, updateScrollingState, updateSize
-
从类继承的方法 net.minecraft.client.gui.AbstractParentElement
isDragging, setDragging, setFocused
-
从类继承的方法 net.minecraft.client.gui.DrawableHelper
drawCenteredString, drawCenteredText, drawHorizontalLine, drawSprite, drawStringWithShadow, drawTexture, drawTexture, drawTexture, drawTexture, drawTextWithShadow, drawVerticalLine, fill, fillGradient, fillGradient, getZOffset, method_29343, method_33284, method_35719, method_35720, setZOffset
-
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
从接口继承的方法 net.minecraft.client.gui.Element
mouseMoved
-
从接口继承的方法 net.minecraft.client.gui.ParentElement
charTyped, focusOn, hoveredElement, keyReleased, setInitialFocus
-
-
-
-
字段详细资料
-
blockStatTypes
protected final List<StatType<Block>> blockStatTypes
- Mappings:
Namespace Name Mixin selector official aLdzo$b;a:Ljava/util/List;intermediary field_18754Lnet/minecraft/class_447$class_4200;field_18754:Ljava/util/List;named blockStatTypesLnet/minecraft/client/gui/screen/StatsScreen$ItemStatsListWidget;blockStatTypes:Ljava/util/List;
-
itemStatTypes
protected final List<StatType<Item>> itemStatTypes
- Mappings:
Namespace Name Mixin selector official pLdzo$b;p:Ljava/util/List;intermediary field_18755Lnet/minecraft/class_447$class_4200;field_18755:Ljava/util/List;named itemStatTypesLnet/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 wLdzo$b;w:[Iintermediary field_18753Lnet/minecraft/class_447$class_4200;field_18753:[Inamed HEADER_ICON_SPRITE_INDICESLnet/minecraft/client/gui/screen/StatsScreen$ItemStatsListWidget;HEADER_ICON_SPRITE_INDICES:[I
-
selectedHeaderColumn
protected int selectedHeaderColumn
- Mappings:
Namespace Name Mixin selector official qLdzo$b;q:Iintermediary field_18756Lnet/minecraft/class_447$class_4200;field_18756:Inamed selectedHeaderColumnLnet/minecraft/client/gui/screen/StatsScreen$ItemStatsListWidget;selectedHeaderColumn:I
-
items
protected final List<Item> items
- Mappings:
Namespace Name Mixin selector official rLdzo$b;r:Ljava/util/List;intermediary field_18757Lnet/minecraft/class_447$class_4200;field_18757:Ljava/util/List;named itemsLnet/minecraft/client/gui/screen/StatsScreen$ItemStatsListWidget;items:Ljava/util/List;
-
comparator
protected final Comparator<Item> comparator
- Mappings:
Namespace Name Mixin selector official sLdzo$b;s:Ljava/util/Comparator;intermediary field_18758Lnet/minecraft/class_447$class_4200;field_18758:Ljava/util/Comparator;named comparatorLnet/minecraft/client/gui/screen/StatsScreen$ItemStatsListWidget;comparator:Ljava/util/Comparator;
-
selectedStatType
@Nullable protected @Nullable StatType<?> selectedStatType
- Mappings:
Namespace Name Mixin selector official tLdzo$b;t:Laff;intermediary field_18759Lnet/minecraft/class_447$class_4200;field_18759:Lnet/minecraft/class_3448;named selectedStatTypeLnet/minecraft/client/gui/screen/StatsScreen$ItemStatsListWidget;selectedStatType:Lnet/minecraft/stat/StatType;
-
field_18760
protected int field_18760
- Mappings:
Namespace Name Mixin selector official uLdzo$b;u:Iintermediary field_18760Lnet/minecraft/class_447$class_4200;field_18760:Inamed field_18760Lnet/minecraft/client/gui/screen/StatsScreen$ItemStatsListWidget;field_18760:I
-
-
构造器详细资料
-
ItemStatsListWidget
public ItemStatsListWidget(MinecraftClient client)
- Mappings:
Namespace Name Mixin selector official <init>Ldzo$b;<init>(Ldzo;Ldum;)Vintermediary <init>Lnet/minecraft/class_447$class_4200;<init>(Lnet/minecraft/class_447;Lnet/minecraft/class_310;)Vnamed <init>Lnet/minecraft/client/gui/screen/StatsScreen$ItemStatsListWidget;<init>(Lnet/minecraft/client/gui/screen/StatsScreen;Lnet/minecraft/client/MinecraftClient;)V
-
-
方法详细资料
-
renderHeader
protected void renderHeader(MatrixStack matrices, int x, int y, Tessellator tessellator)
- 覆盖:
renderHeader在类中EntryListWidget<StatsScreen.ItemStatsListWidget.Entry>- Mappings:
Namespace Name Mixin selector official aLdvs;a(Ldpi;IILdpk;)Vintermediary method_25312Lnet/minecraft/class_350;method_25312(Lnet/minecraft/class_4587;IILnet/minecraft/class_289;)Vnamed renderHeaderLnet/minecraft/client/gui/widget/EntryListWidget;renderHeader(Lnet/minecraft/client/util/math/MatrixStack;IILnet/minecraft/client/render/Tessellator;)V
-
getRowWidth
public int getRowWidth()
- 覆盖:
getRowWidth在类中EntryListWidget<StatsScreen.ItemStatsListWidget.Entry>- Mappings:
Namespace Name Mixin selector official dLdvs;d()Iintermediary method_25322Lnet/minecraft/class_350;method_25322()Inamed getRowWidthLnet/minecraft/client/gui/widget/EntryListWidget;getRowWidth()I
-
getScrollbarPositionX
protected int getScrollbarPositionX()
- 覆盖:
getScrollbarPositionX在类中EntryListWidget<StatsScreen.ItemStatsListWidget.Entry>- Mappings:
Namespace Name Mixin selector official eLdvs;e()Iintermediary method_25329Lnet/minecraft/class_350;method_25329()Inamed getScrollbarPositionXLnet/minecraft/client/gui/widget/EntryListWidget;getScrollbarPositionX()I
-
renderBackground
protected void renderBackground(MatrixStack matrices)
- 覆盖:
renderBackground在类中EntryListWidget<StatsScreen.ItemStatsListWidget.Entry>- Mappings:
Namespace Name Mixin selector official aLdvs;a(Ldpi;)Vintermediary method_25325Lnet/minecraft/class_350;method_25325(Lnet/minecraft/class_4587;)Vnamed renderBackgroundLnet/minecraft/client/gui/widget/EntryListWidget;renderBackground(Lnet/minecraft/client/util/math/MatrixStack;)V
-
clickedHeader
protected void clickedHeader(int x, int y)- 覆盖:
clickedHeader在类中EntryListWidget<StatsScreen.ItemStatsListWidget.Entry>- Mappings:
Namespace Name Mixin selector official aLdvs;a(II)Vintermediary method_25310Lnet/minecraft/class_350;method_25310(II)Vnamed clickedHeaderLnet/minecraft/client/gui/widget/EntryListWidget;clickedHeader(II)V
-
getStatType
private StatType<?> getStatType(int headerColumn)
- Mappings:
Namespace Name Mixin selector official aLdzo$b;a(I)Laff;intermediary method_19410Lnet/minecraft/class_447$class_4200;method_19410(I)Lnet/minecraft/class_3448;named getStatTypeLnet/minecraft/client/gui/screen/StatsScreen$ItemStatsListWidget;getStatType(I)Lnet/minecraft/stat/StatType;
-
getHeaderIndex
private int getHeaderIndex(StatType<?> statType)
- Mappings:
Namespace Name Mixin selector official bLdzo$b;b(Laff;)Iintermediary method_19409Lnet/minecraft/class_447$class_4200;method_19409(Lnet/minecraft/class_3448;)Inamed getHeaderIndexLnet/minecraft/client/gui/screen/StatsScreen$ItemStatsListWidget;getHeaderIndex(Lnet/minecraft/stat/StatType;)I
-
renderDecorations
protected void renderDecorations(MatrixStack matrices, int mouseX, int mouseY)
- 覆盖:
renderDecorations在类中EntryListWidget<StatsScreen.ItemStatsListWidget.Entry>- Mappings:
Namespace Name Mixin selector official aLdvs;a(Ldpi;II)Vintermediary method_25320Lnet/minecraft/class_350;method_25320(Lnet/minecraft/class_4587;II)Vnamed renderDecorationsLnet/minecraft/client/gui/widget/EntryListWidget;renderDecorations(Lnet/minecraft/client/util/math/MatrixStack;II)V
-
render
protected void render(MatrixStack matrices, @Nullable @Nullable Text text, int mouseX, int mouseY)
- Mappings:
Namespace Name Mixin selector official aLdzo$b;a(Ldpi;Lon;II)Vintermediary method_19407Lnet/minecraft/class_447$class_4200;method_19407(Lnet/minecraft/class_4587;Lnet/minecraft/class_2561;II)Vnamed renderLnet/minecraft/client/gui/screen/StatsScreen$ItemStatsListWidget;render(Lnet/minecraft/client/util/math/MatrixStack;Lnet/minecraft/text/Text;II)V
-
getText
protected Text getText(Item item)
- Mappings:
Namespace Name Mixin selector official aLdzo$b;a(Lbpn;)Lon;intermediary method_19406Lnet/minecraft/class_447$class_4200;method_19406(Lnet/minecraft/class_1792;)Lnet/minecraft/class_2561;named getTextLnet/minecraft/client/gui/screen/StatsScreen$ItemStatsListWidget;getText(Lnet/minecraft/item/Item;)Lnet/minecraft/text/Text;
-
selectStatType
protected void selectStatType(StatType<?> statType)
- Mappings:
Namespace Name Mixin selector official aLdzo$b;a(Laff;)Vintermediary method_19408Lnet/minecraft/class_447$class_4200;method_19408(Lnet/minecraft/class_3448;)Vnamed selectStatTypeLnet/minecraft/client/gui/screen/StatsScreen$ItemStatsListWidget;selectStatType(Lnet/minecraft/stat/StatType;)V
-
-