@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 |
| 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, renderHeader, renderSelection, right, top, width, yDragBACKGROUND_TEXTURE, GUI_ICONS_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(Text text,
int x,
int y) |
protected void |
renderBackground() |
protected void |
renderDecorations(int mouseX,
int mouseY) |
protected void |
renderHeader(int x,
int y,
Tessellator tessellator) |
protected void |
selectStatType(StatType<?> statType) |
changeFocusaddEntry, centerScrollOn, children, clearEntries, ensureVisible, getEntry, getEntryAtPosition, getFocused, getItemCount, getMaxPosition, getRowLeft, getRowTop, getScrollAmount, getSelected, isFocused, isMouseOver, isSelectedItem, keyPressed, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, moveSelection, remove, removeEntry, render, renderHoleBackground, renderList, replaceEntries, setLeftPos, setRenderHeader, setScrollAmount, setSelected, updateScrollingState, updateSizeisDragging, setDragging, setFocuseddrawCenteredString, drawHorizontalLine, drawSprite, drawString, drawTexture, drawTexture, drawTexture, drawTexture, drawTexturedQuad, drawVerticalLine, fill, fill, fillGradient, getZOffset, 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(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()
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(int mouseX,
int mouseY)
renderDecorations in class EntryListWidget<StatsScreen.ItemStatsListWidget.Entry>protected void selectStatType(StatType<?> statType)