Package net.minecraft.client.gui.screen
Class StatsScreen.ItemStatsListWidget
java.lang.Object
net.minecraft.client.gui.widget.ClickableWidget
net.minecraft.client.gui.widget.ContainerWidget
net.minecraft.client.gui.widget.EntryListWidget<E>
net.minecraft.client.gui.widget.AlwaysSelectedEntryListWidget<StatsScreen.ItemStatsListWidget.Entry>
net.minecraft.client.gui.screen.StatsScreen.ItemStatsListWidget
- All Implemented Interfaces:
Drawable
,Element
,Narratable
,Navigable
,ParentElement
,Selectable
,Widget
- Enclosing class:
StatsScreen
@Environment(CLIENT)
private class StatsScreen.ItemStatsListWidget
extends AlwaysSelectedEntryListWidget<StatsScreen.ItemStatsListWidget.Entry>
- Mappings:
Namespace Name official fdk$b
intermediary net/minecraft/class_447$class_4200
named net/minecraft/client/gui/screen/StatsScreen$ItemStatsListWidget
-
Nested Class Summary
Modifier and TypeClassDescriptionprivate class
private class
Nested classes/interfaces inherited from interface net.minecraft.client.gui.Selectable
Selectable.SelectionType
-
Field Summary
Modifier and TypeFieldDescriptionprotected final Comparator<StatsScreen.ItemStatsListWidget.Entry>
private final Identifier[]
protected int
protected int
Fields inherited from class net.minecraft.client.gui.widget.EntryListWidget
centerListVertically, client, field_45909, headerHeight, itemHeight
Fields inherited from class net.minecraft.client.gui.widget.ClickableWidget
active, alpha, height, hovered, visible, width
Fields inherited from interface net.minecraft.client.gui.Element
MAX_DOUBLE_CLICK_INTERVAL
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
clickedHeader
(int x, int y) Called when the header is clicked.private int
getHeaderIndex
(StatType<?> statType) int
protected int
private StatType<?>
getStatType
(int headerColumn) protected Text
protected void
renderDecorations
(DrawContext context, int mouseX, int mouseY) protected void
renderHeader
(DrawContext context, int x, int y) protected void
selectStatType
(StatType<?> statType) Methods inherited from class net.minecraft.client.gui.widget.AlwaysSelectedEntryListWidget
appendClickableNarrations, getNavigationPath
Methods inherited from class net.minecraft.client.gui.widget.EntryListWidget
addEntry, addEntryToTop, appendNarrations, centerScrollOn, children, clearEntries, drawSelectionHighlight, enableScissor, ensureVisible, getEntry, getEntryAtPosition, getEntryCount, getFirst, getFocused, getHoveredEntry, getMaxPosition, getMaxScroll, getNeighboringEntry, getNeighboringEntry, getNeighboringEntry, getRowBottom, getRowLeft, getRowRight, getRowTop, getScrollAmount, getSelectedOrNull, getType, isMouseOver, isSelectButton, isSelectedEntry, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, remove, removeEntry, removeEntryWithoutScrolling, renderEntry, renderList, renderWidget, replaceEntries, setFocused, setRenderBackground, setRenderHeader, setScrollAmount, setSelected, updateScrollingState
Methods inherited from class net.minecraft.client.gui.widget.ContainerWidget
isDragging, isFocused, setDragging, setFocused
Methods inherited from class net.minecraft.client.gui.widget.ClickableWidget
appendDefaultNarrations, appendNarrations, clicked, drawScrollableText, drawScrollableText, drawScrollableText, forEachChild, getBottom, getHeight, getMessage, getNarrationMessage, getNarrationMessage, getNavigationFocus, getNavigationOrder, getRight, getTooltip, getWidth, getX, getY, isHovered, isNarratable, isSelected, isValidClickButton, onClick, onDrag, onRelease, playDownSound, render, setAlpha, setDimensions, setDimensionsAndPosition, setHeight, setMessage, setNavigationOrder, setTooltip, setTooltipDelay, setWidth, setX, setY
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.Element
getNavigationFocus, mouseMoved
Methods inherited from interface net.minecraft.client.gui.navigation.Navigable
getNavigationOrder
Methods inherited from interface net.minecraft.client.gui.ParentElement
charTyped, focusOn, getFocusedPath, hoveredElement, keyPressed, keyReleased
Methods inherited from interface net.minecraft.client.gui.widget.Widget
setPosition
-
Field Details
-
blockStatTypes
- Mappings:
Namespace Name Mixin selector official a
Lfdk$b;a:Ljava/util/List;
intermediary field_18754
Lnet/minecraft/class_447$class_4200;field_18754:Ljava/util/List;
named blockStatTypes
Lnet/minecraft/client/gui/screen/StatsScreen$ItemStatsListWidget;blockStatTypes:Ljava/util/List;
-
itemStatTypes
- Mappings:
Namespace Name Mixin selector official m
Lfdk$b;m:Ljava/util/List;
intermediary field_18755
Lnet/minecraft/class_447$class_4200;field_18755:Ljava/util/List;
named itemStatTypes
Lnet/minecraft/client/gui/screen/StatsScreen$ItemStatsListWidget;itemStatTypes:Ljava/util/List;
-
headerIconTextures
- Mappings:
Namespace Name Mixin selector official t
Lfdk$b;t:[Lahg;
intermediary field_45422
Lnet/minecraft/class_447$class_4200;field_45422:[Lnet/minecraft/class_2960;
named headerIconTextures
Lnet/minecraft/client/gui/screen/StatsScreen$ItemStatsListWidget;headerIconTextures:[Lnet/minecraft/util/Identifier;
-
selectedHeaderColumn
protected int selectedHeaderColumn- Mappings:
Namespace Name Mixin selector official n
Lfdk$b;n:I
intermediary field_18756
Lnet/minecraft/class_447$class_4200;field_18756:I
named selectedHeaderColumn
Lnet/minecraft/client/gui/screen/StatsScreen$ItemStatsListWidget;selectedHeaderColumn:I
-
comparator
- Mappings:
Namespace Name Mixin selector official o
Lfdk$b;o:Ljava/util/Comparator;
intermediary field_18758
Lnet/minecraft/class_447$class_4200;field_18758:Ljava/util/Comparator;
named comparator
Lnet/minecraft/client/gui/screen/StatsScreen$ItemStatsListWidget;comparator:Ljava/util/Comparator;
-
selectedStatType
- Mappings:
Namespace Name Mixin selector official p
Lfdk$b;p:Lasb;
intermediary field_18759
Lnet/minecraft/class_447$class_4200;field_18759:Lnet/minecraft/class_3448;
named selectedStatType
Lnet/minecraft/client/gui/screen/StatsScreen$ItemStatsListWidget;selectedStatType:Lnet/minecraft/stat/StatType;
-
listOrder
protected int listOrder- Mappings:
Namespace Name Mixin selector official q
Lfdk$b;q:I
intermediary field_18760
Lnet/minecraft/class_447$class_4200;field_18760:I
named listOrder
Lnet/minecraft/client/gui/screen/StatsScreen$ItemStatsListWidget;listOrder:I
-
-
Constructor Details
-
ItemStatsListWidget
- Mappings:
Namespace Name Mixin selector official <init>
Lfdk$b;<init>(Lfdk;Levi;)V
intermediary <init>
Lnet/minecraft/class_447$class_4200;<init>(Lnet/minecraft/class_447;Lnet/minecraft/class_310;)V
named <init>
Lnet/minecraft/client/gui/screen/StatsScreen$ItemStatsListWidget;<init>(Lnet/minecraft/client/gui/screen/StatsScreen;Lnet/minecraft/client/MinecraftClient;)V
-
-
Method Details
-
renderHeader
- Overrides:
renderHeader
in classEntryListWidget<StatsScreen.ItemStatsListWidget.Entry>
- Mappings:
Namespace Name Mixin selector official a
Lexb;a(Lewu;II)V
intermediary method_25312
Lnet/minecraft/class_350;method_25312(Lnet/minecraft/class_332;II)V
named renderHeader
Lnet/minecraft/client/gui/widget/EntryListWidget;renderHeader(Lnet/minecraft/client/gui/DrawContext;II)V
-
getRowWidth
public int getRowWidth()- Overrides:
getRowWidth
in classEntryListWidget<StatsScreen.ItemStatsListWidget.Entry>
- Mappings:
Namespace Name Mixin selector official b
Lexb;b()I
intermediary method_25322
Lnet/minecraft/class_350;method_25322()I
named getRowWidth
Lnet/minecraft/client/gui/widget/EntryListWidget;getRowWidth()I
-
getScrollbarPositionX
protected int getScrollbarPositionX()- Overrides:
getScrollbarPositionX
in classEntryListWidget<StatsScreen.ItemStatsListWidget.Entry>
- Mappings:
Namespace Name Mixin selector official c
Lexb;c()I
intermediary method_25329
Lnet/minecraft/class_350;method_25329()I
named getScrollbarPositionX
Lnet/minecraft/client/gui/widget/EntryListWidget;getScrollbarPositionX()I
-
clickedHeader
protected boolean clickedHeader(int x, int y) Called when the header is clicked.- Overrides:
clickedHeader
in classEntryListWidget<StatsScreen.ItemStatsListWidget.Entry>
- Returns:
true
to indicate that the event handling is successful/valid- Mappings:
Namespace Name Mixin selector official a
Lexb;a(II)Z
intermediary method_25310
Lnet/minecraft/class_350;method_25310(II)Z
named clickedHeader
Lnet/minecraft/client/gui/widget/EntryListWidget;clickedHeader(II)Z
-
getStatType
- Mappings:
Namespace Name Mixin selector official a
Lfdk$b;a(I)Lasb;
intermediary method_19410
Lnet/minecraft/class_447$class_4200;method_19410(I)Lnet/minecraft/class_3448;
named getStatType
Lnet/minecraft/client/gui/screen/StatsScreen$ItemStatsListWidget;getStatType(I)Lnet/minecraft/stat/StatType;
-
getHeaderIndex
- Mappings:
Namespace Name Mixin selector official b
Lfdk$b;b(Lasb;)I
intermediary method_19409
Lnet/minecraft/class_447$class_4200;method_19409(Lnet/minecraft/class_3448;)I
named getHeaderIndex
Lnet/minecraft/client/gui/screen/StatsScreen$ItemStatsListWidget;getHeaderIndex(Lnet/minecraft/stat/StatType;)I
-
renderDecorations
- Overrides:
renderDecorations
in classEntryListWidget<StatsScreen.ItemStatsListWidget.Entry>
- Mappings:
Namespace Name Mixin selector official b
Lexb;b(Lewu;II)V
intermediary method_25320
Lnet/minecraft/class_350;method_25320(Lnet/minecraft/class_332;II)V
named renderDecorations
Lnet/minecraft/client/gui/widget/EntryListWidget;renderDecorations(Lnet/minecraft/client/gui/DrawContext;II)V
-
getText
- Mappings:
Namespace Name Mixin selector official a
Lfdk$b;a(Lcmt;)Lvf;
intermediary method_19406
Lnet/minecraft/class_447$class_4200;method_19406(Lnet/minecraft/class_1792;)Lnet/minecraft/class_2561;
named getText
Lnet/minecraft/client/gui/screen/StatsScreen$ItemStatsListWidget;getText(Lnet/minecraft/item/Item;)Lnet/minecraft/text/Text;
-
selectStatType
- Mappings:
Namespace Name Mixin selector official a
Lfdk$b;a(Lasb;)V
intermediary method_19408
Lnet/minecraft/class_447$class_4200;method_19408(Lnet/minecraft/class_3448;)V
named selectStatType
Lnet/minecraft/client/gui/screen/StatsScreen$ItemStatsListWidget;selectStatType(Lnet/minecraft/stat/StatType;)V
-