Package net.minecraft.client.gui.screen
Class StatsScreen.ItemStatsListWidget.Entry
java.lang.Object
net.minecraft.client.gui.widget.EntryListWidget.Entry<E>
net.minecraft.client.gui.widget.AlwaysSelectedEntryListWidget.Entry<StatsScreen.ItemStatsListWidget.Entry>
net.minecraft.client.gui.screen.StatsScreen.ItemStatsListWidget.Entry
- All Implemented Interfaces:
Element,Narratable,Navigable
- Enclosing class:
StatsScreen.ItemStatsListWidget
@Environment(CLIENT)
private class StatsScreen.ItemStatsListWidget.Entry
extends AlwaysSelectedEntryListWidget.Entry<StatsScreen.ItemStatsListWidget.Entry>
- Mappings:
Namespace Name official euo$b$aintermediary net/minecraft/class_447$class_4200$class_4199named net/minecraft/client/gui/screen/StatsScreen$ItemStatsListWidget$Entry
-
Field Summary
FieldsFields inherited from interface net.minecraft.client.gui.Element
MAX_DOUBLE_CLICK_INTERVAL -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetItem()voidrender(DrawContext context, int index, int y, int x, int entryWidth, int entryHeight, int mouseX, int mouseY, boolean hovered, float tickDelta) Renders an entry in a list.protected voidrender(DrawContext drawContext, @Nullable Stat<?> stat, int x, int y, boolean white) Methods inherited from class net.minecraft.client.gui.widget.AlwaysSelectedEntryListWidget.Entry
appendNarrationsMethods inherited from class net.minecraft.client.gui.widget.EntryListWidget.Entry
drawBorder, isFocused, isMouseOver, setFocusedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.client.gui.Element
charTyped, getFocusedPath, getNavigationFocus, getNavigationPath, keyPressed, keyReleased, mouseClicked, mouseDragged, mouseMoved, mouseReleased, mouseScrolledMethods inherited from interface net.minecraft.client.gui.navigation.Navigable
getNavigationOrder
-
Field Details
-
item
- Mappings:
Namespace Name Mixin selector official bLeuo$b$a;b:Lcfs;intermediary field_33830Lnet/minecraft/class_447$class_4200$class_4199;field_33830:Lnet/minecraft/class_1792;named itemLnet/minecraft/client/gui/screen/StatsScreen$ItemStatsListWidget$Entry;item:Lnet/minecraft/item/Item;
-
-
Constructor Details
-
Entry
Entry(Item item) - Mappings:
Namespace Name Mixin selector official <init>Leuo$b$a;<init>(Leuo$b;Lcfs;)Vintermediary <init>Lnet/minecraft/class_447$class_4200$class_4199;<init>(Lnet/minecraft/class_447$class_4200;Lnet/minecraft/class_1792;)Vnamed <init>Lnet/minecraft/client/gui/screen/StatsScreen$ItemStatsListWidget$Entry;<init>(Lnet/minecraft/client/gui/screen/StatsScreen$ItemStatsListWidget;Lnet/minecraft/item/Item;)V
-
-
Method Details
-
getItem
- Mappings:
Namespace Name Mixin selector official bLeuo$b$a;b()Lcfs;intermediary method_37307Lnet/minecraft/class_447$class_4200$class_4199;method_37307()Lnet/minecraft/class_1792;named getItemLnet/minecraft/client/gui/screen/StatsScreen$ItemStatsListWidget$Entry;getItem()Lnet/minecraft/item/Item;
-
render
public void render(DrawContext context, int index, int y, int x, int entryWidth, int entryHeight, int mouseX, int mouseY, boolean hovered, float tickDelta) Renders an entry in a list.- Specified by:
renderin classEntryListWidget.Entry<StatsScreen.ItemStatsListWidget.Entry>- Parameters:
index- the index of the entryy- the Y coordinate of the entryx- the X coordinate of the entryentryWidth- the width of the entryentryHeight- the height of the entrymouseX- the X coordinate of the mousemouseY- the Y coordinate of the mousehovered- whether the mouse is hovering over the entry- Mappings:
Namespace Name Mixin selector official aLeou$a;a(Leop;IIIIIIIZF)Vintermediary method_25343Lnet/minecraft/class_350$class_351;method_25343(Lnet/minecraft/class_332;IIIIIIIZF)Vnamed renderLnet/minecraft/client/gui/widget/EntryListWidget$Entry;render(Lnet/minecraft/client/gui/DrawContext;IIIIIIIZF)V
-
render
protected void render(DrawContext drawContext, @Nullable @Nullable Stat<?> stat, int x, int y, boolean white) - Mappings:
Namespace Name Mixin selector official aLeuo$b$a;a(Leop;Lamo;IIZ)Vintermediary method_19405Lnet/minecraft/class_447$class_4200$class_4199;method_19405(Lnet/minecraft/class_332;Lnet/minecraft/class_3445;IIZ)Vnamed renderLnet/minecraft/client/gui/screen/StatsScreen$ItemStatsListWidget$Entry;render(Lnet/minecraft/client/gui/DrawContext;Lnet/minecraft/stat/Stat;IIZ)V
-
getNarration
- Specified by:
getNarrationin classAlwaysSelectedEntryListWidget.Entry<StatsScreen.ItemStatsListWidget.Entry>- Mappings:
Namespace Name Mixin selector official aLept$a;a()Lsw;intermediary method_37006Lnet/minecraft/class_4280$class_4281;method_37006()Lnet/minecraft/class_2561;named getNarrationLnet/minecraft/client/gui/widget/AlwaysSelectedEntryListWidget$Entry;getNarration()Lnet/minecraft/text/Text;
-