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
class StatsScreen.StatsList extends ExtendedList<StatsScreen.StatsList.Entry>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) class
StatsScreen.StatsList.Comparator
(package private) class
StatsScreen.StatsList.Entry
-
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
Fields Modifier and Type Field Description protected java.util.List<StatType<Block>>
blockColumns
protected int
headerPressed
private int[]
iconOffsets
protected java.util.List<StatType<Item>>
itemColumns
protected java.util.Comparator<Item>
itemStatSorter
protected StatType<?>
sortColumn
protected int
sortOrder
protected java.util.List<Item>
statItemList
-
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
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected 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
getRowWidth()
protected int
getScrollbarPosition()
protected ITextComponent
getString(Item p_200208_1_)
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 Detail
-
iconOffsets
private final int[] iconOffsets
-
headerPressed
protected int headerPressed
-
statItemList
protected final java.util.List<Item> statItemList
-
itemStatSorter
protected final java.util.Comparator<Item> itemStatSorter
-
sortColumn
@Nullable protected StatType<?> sortColumn
-
sortOrder
protected int sortOrder
-
-
Constructor Detail
-
StatsList
public StatsList(Minecraft p_i47552_2_)
-
-
Method Detail
-
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
protected void renderBackground(MatrixStack p_230433_1_)
- 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
private StatType<?> getColumn(int p_195108_1_)
-
getColumnIndex
private int getColumnIndex(StatType<?> p_195105_1_)
-
renderDecorations
protected void renderDecorations(MatrixStack p_230447_1_, int p_230447_2_, int p_230447_3_)
- 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
protected ITextComponent getString(Item p_200208_1_)
-
sortByColumn
protected void sortByColumn(StatType<?> p_195107_1_)
-
-