Package net.minecraft.client.gui.widget
Class ItemStackWidget
java.lang.Object
net.minecraft.client.gui.widget.ClickableWidget
net.minecraft.client.gui.widget.ItemStackWidget
- All Implemented Interfaces:
Drawable,Element,Narratable,Navigable,Selectable,Widget
- Direct Known Subclasses:
StatsScreen.ItemStatsListWidget.StatEntry.ItemStackInSlotWidget
- Mappings:
Namespace Name named net/minecraft/client/gui/widget/ItemStackWidgetintermediary net/minecraft/class_11466official gin
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.client.gui.widget.ClickableWidget
ClickableWidget.InactivityIndicatingWidgetNested classes/interfaces inherited from interface net.minecraft.client.gui.Selectable
Selectable.SelectionType -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final MinecraftClientprivate final booleanprivate final booleanprivate final ItemStackprivate final intprivate final int -
Constructor Summary
ConstructorsConstructorDescriptionItemStackWidget(MinecraftClient client, int x, int y, int width, int height, Text message, ItemStack stack, boolean drawOverlay, boolean hasTooltip) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected voidrenderTooltip(DrawContext context, int mouseX, int mouseY) protected voidrenderWidget(DrawContext context, int mouseX, int mouseY, float deltaTicks) Methods inherited from class net.minecraft.client.gui.widget.ClickableWidget
appendDefaultNarrations, appendNarrations, drawTextWithMargin, forEachChild, getAlpha, getBottom, getHeight, getMessage, getNarrationMessage, getNarrationMessage, getNavigationFocus, getNavigationOrder, getNavigationPath, getRight, getType, getWidth, getX, getY, isFocused, isHovered, isInteractable, isMouseOver, isSelected, isValidClickButton, mouseClicked, mouseDragged, mouseReleased, onClick, onDrag, onRelease, playClickSound, playDownSound, render, setAlpha, setCursor, setDimensions, setDimensionsAndPosition, setFocused, setHeight, setMessage, setNavigationOrder, setTooltip, setTooltipDelay, setWidth, setX, setYMethods 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, getBorder, getFocusedPath, isClickable, keyPressed, keyReleased, mouseMoved, mouseScrolledMethods inherited from interface net.minecraft.client.gui.Selectable
getNarratedPartsMethods inherited from interface net.minecraft.client.gui.widget.Widget
setPosition
-
Field Details
-
client
- Mappings:
Namespace Name Mixin selector named clientLnet/minecraft/client/gui/widget/ItemStackWidget;client:Lnet/minecraft/client/MinecraftClient;intermediary field_60709Lnet/minecraft/class_11466;field_60709:Lnet/minecraft/class_310;official aLgin;a:Lgef;
-
xOffset
private final int xOffset- Mappings:
Namespace Name Mixin selector named xOffsetLnet/minecraft/client/gui/widget/ItemStackWidget;xOffset:Iintermediary field_60710Lnet/minecraft/class_11466;field_60710:Iofficial bLgin;b:I
-
yOffset
private final int yOffset- Mappings:
Namespace Name Mixin selector named yOffsetLnet/minecraft/client/gui/widget/ItemStackWidget;yOffset:Iintermediary field_60711Lnet/minecraft/class_11466;field_60711:Iofficial cLgin;c:I
-
stack
- Mappings:
Namespace Name Mixin selector named stackLnet/minecraft/client/gui/widget/ItemStackWidget;stack:Lnet/minecraft/item/ItemStack;intermediary field_60712Lnet/minecraft/class_11466;field_60712:Lnet/minecraft/class_1799;official dLgin;d:Ldkq;
-
drawOverlay
private final boolean drawOverlay- Mappings:
Namespace Name Mixin selector named drawOverlayLnet/minecraft/client/gui/widget/ItemStackWidget;drawOverlay:Zintermediary field_60713Lnet/minecraft/class_11466;field_60713:Zofficial eLgin;e:Z
-
hasTooltip
private final boolean hasTooltip- Mappings:
Namespace Name Mixin selector named hasTooltipLnet/minecraft/client/gui/widget/ItemStackWidget;hasTooltip:Zintermediary field_60714Lnet/minecraft/class_11466;field_60714:Zofficial fLgin;f:Z
-
-
Constructor Details
-
ItemStackWidget
public ItemStackWidget(MinecraftClient client, int x, int y, int width, int height, Text message, ItemStack stack, boolean drawOverlay, boolean hasTooltip) - Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/client/gui/widget/ItemStackWidget;<init>(Lnet/minecraft/client/MinecraftClient;IIIILnet/minecraft/text/Text;Lnet/minecraft/item/ItemStack;ZZ)Vintermediary <init>Lnet/minecraft/class_11466;<init>(Lnet/minecraft/class_310;IIIILnet/minecraft/class_2561;Lnet/minecraft/class_1799;ZZ)Vofficial <init>Lgin;<init>(Lgef;IIIILyh;Ldkq;ZZ)V
-
-
Method Details
-
renderWidget
- Specified by:
renderWidgetin classClickableWidget- Mappings:
Namespace Name Mixin selector named renderWidgetLnet/minecraft/client/gui/widget/ClickableWidget;renderWidget(Lnet/minecraft/client/gui/DrawContext;IIF)Vintermediary method_48579Lnet/minecraft/class_339;method_48579(Lnet/minecraft/class_332;IIF)Vofficial a_Lghx;a_(Lghm;IIF)V
-
renderTooltip
- Mappings:
Namespace Name Mixin selector named renderTooltipLnet/minecraft/client/gui/widget/ItemStackWidget;renderTooltip(Lnet/minecraft/client/gui/DrawContext;II)Vintermediary method_73392Lnet/minecraft/class_11466;method_73392(Lnet/minecraft/class_332;II)Vofficial aLgin;a(Lghm;II)V
-
appendClickableNarrations
- Specified by:
appendClickableNarrationsin classClickableWidget- Mappings:
Namespace Name Mixin selector named appendClickableNarrationsLnet/minecraft/client/gui/widget/ClickableWidget;appendClickableNarrations(Lnet/minecraft/client/gui/screen/narration/NarrationMessageBuilder;)Vintermediary method_47399Lnet/minecraft/class_339;method_47399(Lnet/minecraft/class_6382;)Vofficial aLghx;a(Lgny;)V
-