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
- Mappings:
Namespace Name named net/minecraft/client/gui/widget/ItemStackWidget
intermediary net/minecraft/class_11466
official fyb
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.client.gui.Selectable
Selectable.SelectionType
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final MinecraftClient
private final boolean
private final boolean
private final ItemStack
private final int
private final int
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
ConstructorsConstructorDescriptionItemStackWidget
(MinecraftClient client, int x, int y, int width, int height, Text message, ItemStack stack, boolean drawOverlay, boolean hasTooltip) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
protected void
renderWidget
(DrawContext context, int mouseX, int mouseY, float deltaTicks) Methods inherited from class net.minecraft.client.gui.widget.ClickableWidget
appendDefaultNarrations, appendNarrations, drawScrollableText, drawScrollableText, drawScrollableText, forEachChild, getBottom, getHeight, getMessage, getNarrationMessage, getNarrationMessage, getNavigationFocus, getNavigationOrder, getNavigationPath, getRight, getType, getWidth, getX, getY, isFocused, isHovered, isMouseOver, isNarratable, isSelected, isValidClickButton, mouseClicked, mouseDragged, mouseReleased, onClick, onDrag, onRelease, playClickSound, playDownSound, render, setAlpha, setDimensions, setDimensionsAndPosition, setFocused, 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
charTyped, getBorder, getFocusedPath, keyPressed, keyReleased, mouseMoved, mouseScrolled
Methods inherited from interface net.minecraft.client.gui.Selectable
getNarratedParts
Methods inherited from interface net.minecraft.client.gui.widget.Widget
setPosition
-
Field Details
-
client
- Mappings:
Namespace Name Mixin selector named client
Lnet/minecraft/client/gui/widget/ItemStackWidget;client:Lnet/minecraft/client/MinecraftClient;
intermediary field_60709
Lnet/minecraft/class_11466;field_60709:Lnet/minecraft/class_310;
official a
Lfyb;a:Lfud;
-
xOffset
private final int xOffset- Mappings:
Namespace Name Mixin selector named xOffset
Lnet/minecraft/client/gui/widget/ItemStackWidget;xOffset:I
intermediary field_60710
Lnet/minecraft/class_11466;field_60710:I
official b
Lfyb;b:I
-
yOffset
private final int yOffset- Mappings:
Namespace Name Mixin selector named yOffset
Lnet/minecraft/client/gui/widget/ItemStackWidget;yOffset:I
intermediary field_60711
Lnet/minecraft/class_11466;field_60711:I
official c
Lfyb;c:I
-
stack
- Mappings:
Namespace Name Mixin selector named stack
Lnet/minecraft/client/gui/widget/ItemStackWidget;stack:Lnet/minecraft/item/ItemStack;
intermediary field_60712
Lnet/minecraft/class_11466;field_60712:Lnet/minecraft/class_1799;
official d
Lfyb;d:Ldcv;
-
drawOverlay
private final boolean drawOverlay- Mappings:
Namespace Name Mixin selector named drawOverlay
Lnet/minecraft/client/gui/widget/ItemStackWidget;drawOverlay:Z
intermediary field_60713
Lnet/minecraft/class_11466;field_60713:Z
official e
Lfyb;e:Z
-
hasTooltip
private final boolean hasTooltip- Mappings:
Namespace Name Mixin selector named hasTooltip
Lnet/minecraft/client/gui/widget/ItemStackWidget;hasTooltip:Z
intermediary field_60714
Lnet/minecraft/class_11466;field_60714:Z
official f
Lfyb;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)V
intermediary <init>
Lnet/minecraft/class_11466;<init>(Lnet/minecraft/class_310;IIIILnet/minecraft/class_2561;Lnet/minecraft/class_1799;ZZ)V
official <init>
Lfyb;<init>(Lfud;IIIILxo;Ldcv;ZZ)V
-
-
Method Details
-
renderWidget
- Specified by:
renderWidget
in classClickableWidget
- Mappings:
Namespace Name Mixin selector named renderWidget
Lnet/minecraft/client/gui/widget/ClickableWidget;renderWidget(Lnet/minecraft/client/gui/DrawContext;IIF)V
intermediary method_48579
Lnet/minecraft/class_339;method_48579(Lnet/minecraft/class_332;IIF)V
official b
Lfxl;b(Lfxa;IIF)V
-
appendClickableNarrations
- Specified by:
appendClickableNarrations
in classClickableWidget
- Mappings:
Namespace Name Mixin selector named appendClickableNarrations
Lnet/minecraft/client/gui/widget/ClickableWidget;appendClickableNarrations(Lnet/minecraft/client/gui/screen/narration/NarrationMessageBuilder;)V
intermediary method_47399
Lnet/minecraft/class_339;method_47399(Lnet/minecraft/class_6382;)V
official a
Lfxl;a(Lgbs;)V
-