@Environment(value=CLIENT) class StatsScreen.ItemStatsListWidget extends AlwaysSelectedEntryListWidget<StatsScreen.ItemStatsListWidget.Entry>
| Modifier and Type | Class and Description |
|---|---|
(package private) class |
StatsScreen.ItemStatsListWidget.Entry |
(package private) class |
StatsScreen.ItemStatsListWidget.ItemComparator |
EntryListWidget.MoveDirection| Modifier and Type | Field and 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 |
bottom, centerListVertically, client, headerHeight, height, itemHeight, left, right, top, widthGUI_ICONS_TEXTURE, OPTIONS_BACKGROUND_TEXTURE, STATS_ICON_TEXTURE| Constructor and Description |
|---|
ItemStatsListWidget(MinecraftClient client) |
| Modifier and Type | Method and 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 matrixStack,
Text text,
int int2,
int int3) |
protected void |
renderBackground(MatrixStack matrices) |
protected void |
renderDecorations(MatrixStack matrixStack,
int int2,
int int3) |
protected void |
renderHeader(MatrixStack matrices,
int x,
int y,
Tessellator tessellator) |
protected void |
selectStatType(StatType<?> statType) |
changeFocusaddEntry, 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, updateSizeisDragging, setDragging, setFocuseddrawCenteredString, drawCenteredText, drawHorizontalLine, drawSprite, drawStringWithShadow, drawTexture, drawTexture, drawTexture, drawTexture, drawTextWithShadow, drawVerticalLine, fill, fillGradient, fillGradient, getZOffset, method_29343, setZOffsetclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcharTyped, focusOn, hoveredElement, keyReleased, setInitialFocusmouseMovedprivate final int[] HEADER_ICON_SPRITE_INDICES
protected int selectedHeaderColumn
protected final Comparator<Item> comparator
protected int field_18760
public ItemStatsListWidget(MinecraftClient client)
protected void renderHeader(MatrixStack matrices, int x, int y, Tessellator tessellator)
renderHeader in class EntryListWidget<StatsScreen.ItemStatsListWidget.Entry>public int getRowWidth()
getRowWidth in class EntryListWidget<StatsScreen.ItemStatsListWidget.Entry>protected int getScrollbarPositionX()
getScrollbarPositionX in class EntryListWidget<StatsScreen.ItemStatsListWidget.Entry>protected void renderBackground(MatrixStack matrices)
renderBackground in class EntryListWidget<StatsScreen.ItemStatsListWidget.Entry>protected void clickedHeader(int x,
int y)
clickedHeader in class EntryListWidget<StatsScreen.ItemStatsListWidget.Entry>private StatType<?> getStatType(int headerColumn)
private int getHeaderIndex(StatType<?> statType)
protected void renderDecorations(MatrixStack matrixStack, int int2, int int3)
renderDecorations in class EntryListWidget<StatsScreen.ItemStatsListWidget.Entry>protected void render(MatrixStack matrixStack, @Nullable Text text, int int2, int int3)
protected void selectStatType(StatType<?> statType)