Package net.minecraft.client.gui.screen
Class StatsScreen.StatsList
java.lang.Object
net.minecraft.client.gui.AbstractGui
net.minecraft.client.gui.FocusableGui
net.minecraft.client.gui.widget.list.AbstractList<E>
net.minecraft.client.gui.widget.list.ExtendedList<StatsScreen.StatsList.Entry>
net.minecraft.client.gui.screen.StatsScreen.StatsList
- All Implemented Interfaces:
IGuiEventListener
,INestedGuiEventHandler
,IRenderable
- Enclosing class:
- StatsScreen
-
Nested Class Summary
Modifier and TypeClassDescription(package private) class
(package private) class
Nested classes/interfaces inherited from class net.minecraft.client.gui.widget.list.ExtendedList
ExtendedList.AbstractListEntry<E extends ExtendedList.AbstractListEntry<E>>
Nested classes/interfaces inherited from class net.minecraft.client.gui.widget.list.AbstractList
AbstractList.Ordering
-
Field Summary
Modifier and TypeFieldDescriptionprotected int
private final int[]
protected final Comparator<Item>
protected StatType<?>
protected int
Fields inherited from class net.minecraft.client.gui.widget.list.AbstractList
centerListVertically, headerHeight, height, itemHeight, minecraft, width, x0, x1, y0, y1
Fields inherited from class net.minecraft.client.gui.AbstractGui
BACKGROUND_LOCATION, GUI_ICONS_LOCATION, STATS_ICON_LOCATION
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
clickedHeader
(int p_230938_1_, int p_230938_2_) private StatType<?>
getColumn
(int p_195108_1_) private int
getColumnIndex
(StatType<?> p_195105_1_) int
protected int
protected ITextComponent
protected void
renderBackground
(MatrixStack p_230433_1_) protected void
renderDecorations
(MatrixStack p_230447_1_, int p_230447_2_, int p_230447_3_) protected void
renderHeader
(MatrixStack p_230448_1_, int p_230448_2_, int p_230448_3_, Tessellator p_230448_4_) protected void
renderMousehoverTooltip
(MatrixStack p_238680_1_, ITextComponent p_238680_2_, int p_238680_3_, int p_238680_4_) protected void
sortByColumn
(StatType<?> p_195107_1_) Methods inherited from class net.minecraft.client.gui.widget.list.ExtendedList
changeFocus
Methods inherited from class net.minecraft.client.gui.widget.list.AbstractList
addEntry, centerScrollOn, children, clearEntries, ensureVisible, getBottom, getEntry, getEntryAtPosition, getFocused, getHeight, getItemCount, getLeft, getMaxPosition, getMaxScroll, getRight, getRowLeft, getRowRight, getRowTop, getScrollAmount, getSelected, getTop, getWidth, isFocused, isMouseOver, isSelectedItem, keyPressed, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, moveSelection, moveSelection, refreshSelection, remove, removeEntry, render, renderList, replaceEntries, setLeftPos, setRenderBackground, setRenderHeader, setRenderSelection, setRenderTopAndBottom, setScrollAmount, setSelected, updateScrollingState, updateSize
Methods inherited from class net.minecraft.client.gui.FocusableGui
isDragging, setDragging, setFocused
Methods inherited from class net.minecraft.client.gui.AbstractGui
blit, blit, blit, blit, blit, blitOutlineBlack, drawCenteredString, drawCenteredString, drawString, drawString, fill, fillGradient, fillGradient, getBlitOffset, hLine, setBlitOffset, vLine
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.IGuiEventListener
mouseMoved
Methods inherited from interface net.minecraft.client.gui.INestedGuiEventHandler
charTyped, getChildAt, keyReleased, magicalSpecialHackyFocus, setInitialFocus
-
Field Details
-
blockColumns
-
itemColumns
-
iconOffsets
private final int[] iconOffsets -
headerPressed
protected int headerPressed -
statItemList
-
itemStatSorter
-
sortColumn
-
sortOrder
protected int sortOrder
-
-
Constructor Details
-
StatsList
-
-
Method Details
-
renderHeader
protected void renderHeader(MatrixStack p_230448_1_, int p_230448_2_, int p_230448_3_, Tessellator p_230448_4_) - Overrides:
renderHeader
in classAbstractList<StatsScreen.StatsList.Entry>
-
getRowWidth
public int getRowWidth()- Overrides:
getRowWidth
in classAbstractList<StatsScreen.StatsList.Entry>
-
getScrollbarPosition
protected int getScrollbarPosition()- Overrides:
getScrollbarPosition
in classAbstractList<StatsScreen.StatsList.Entry>
-
renderBackground
- Overrides:
renderBackground
in classAbstractList<StatsScreen.StatsList.Entry>
-
clickedHeader
protected void clickedHeader(int p_230938_1_, int p_230938_2_) - Overrides:
clickedHeader
in classAbstractList<StatsScreen.StatsList.Entry>
-
getColumn
-
getColumnIndex
-
renderDecorations
- Overrides:
renderDecorations
in classAbstractList<StatsScreen.StatsList.Entry>
-
renderMousehoverTooltip
protected void renderMousehoverTooltip(MatrixStack p_238680_1_, @Nullable ITextComponent p_238680_2_, int p_238680_3_, int p_238680_4_) -
getString
-
sortByColumn
-