Package net.minecraft.client.gui.widget
Class IconButtonWidget
java.lang.Object
net.minecraft.client.gui.widget.ClickableWidget
net.minecraft.client.gui.widget.PressableWidget
net.minecraft.client.gui.widget.ButtonWidget
net.minecraft.client.gui.widget.IconButtonWidget
- All Implemented Interfaces:
Drawable
,Element
,Narratable
,Navigable
,Selectable
,Widget
- Mappings:
Namespace Name official eqf
intermediary net/minecraft/class_8084
named net/minecraft/client/gui/widget/IconButtonWidget
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.client.gui.widget.ButtonWidget
ButtonWidget.NarrationSupplier, ButtonWidget.PressAction
Nested classes/interfaces inherited from interface net.minecraft.client.gui.Selectable
Selectable.SelectionType
-
Field Summary
Modifier and TypeFieldDescriptionprivate final int
protected final int
protected final Identifier
protected final int
protected final int
protected final int
protected final int
private final int
private final int
private final int
Fields inherited from class net.minecraft.client.gui.widget.ButtonWidget
DEFAULT_HEIGHT, DEFAULT_NARRATION_SUPPLIER, DEFAULT_WIDTH, DEFAULT_WIDTH_SMALL, narrationSupplier, onPress
Fields inherited from class net.minecraft.client.gui.widget.PressableWidget
field_43046, field_43047, field_43048, field_43050, field_43100, field_43101
Fields inherited from class net.minecraft.client.gui.widget.ClickableWidget
ACCESSIBILITY_TEXTURE, active, alpha, height, hovered, visible, WIDGETS_TEXTURE, width
Fields inherited from interface net.minecraft.client.gui.Element
MAX_DOUBLE_CLICK_INTERVAL
-
Constructor Summary
ConstructorDescriptionIconButtonWidget
(Text message, int iconU, int iconV, int iconXOffset, int iconYOffset, int iconHoveredVOffset, int iconWidth, int iconHeight, int iconTextureWidth, int iconTextureHeight, Identifier iconTexture, ButtonWidget.PressAction onPress) -
Method Summary
Modifier and TypeMethodDescriptionstatic IconButtonWidget.Builder
builder
(Text message, Identifier texture, ButtonWidget.PressAction pressAction) void
drawMessage
(DrawContext context, TextRenderer textRenderer, int color) private int
getIconX()
private int
getIconY()
void
renderButton
(DrawContext context, int mouseX, int mouseY, float delta) Methods inherited from class net.minecraft.client.gui.widget.ButtonWidget
appendClickableNarrations, builder, getNarrationMessage, onPress
Methods inherited from class net.minecraft.client.gui.widget.PressableWidget
keyPressed, onClick
Methods inherited from class net.minecraft.client.gui.widget.ClickableWidget
appendDefaultNarrations, appendNarrations, clicked, drawScrollableText, drawScrollableText, drawTexture, forEachChild, getHeight, getMessage, getNarrationMessage, getNavigationFocus, getNavigationOrder, getNavigationPath, getTooltip, getTooltipPositioner, getType, getWidth, getX, getY, isFocused, isHovered, isMouseOver, isNarratable, isSelected, isValidClickButton, mouseClicked, mouseDragged, mouseReleased, onDrag, onRelease, playDownSound, render, setAlpha, setFocused, 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, getFocusedPath, keyReleased, mouseMoved, mouseScrolled
Methods inherited from interface net.minecraft.client.gui.widget.Widget
setPosition
-
Field Details
-
iconTexture
- Mappings:
Namespace Name Mixin selector official a
Leqf;a:Lacq;
intermediary field_43070
Lnet/minecraft/class_8084;field_43070:Lnet/minecraft/class_2960;
named iconTexture
Lnet/minecraft/client/gui/widget/IconButtonWidget;iconTexture:Lnet/minecraft/util/Identifier;
-
iconU
protected final int iconU- Mappings:
Namespace Name Mixin selector official b
Leqf;b:I
intermediary field_43071
Lnet/minecraft/class_8084;field_43071:I
named iconU
Lnet/minecraft/client/gui/widget/IconButtonWidget;iconU:I
-
iconV
protected final int iconV- Mappings:
Namespace Name Mixin selector official c
Leqf;c:I
intermediary field_43072
Lnet/minecraft/class_8084;field_43072:I
named iconV
Lnet/minecraft/client/gui/widget/IconButtonWidget;iconV:I
-
iconHoveredVOffset
protected final int iconHoveredVOffset- Mappings:
Namespace Name Mixin selector official d
Leqf;d:I
intermediary field_43073
Lnet/minecraft/class_8084;field_43073:I
named iconHoveredVOffset
Lnet/minecraft/client/gui/widget/IconButtonWidget;iconHoveredVOffset:I
-
iconTextureWidth
protected final int iconTextureWidth- Mappings:
Namespace Name Mixin selector official e
Leqf;e:I
intermediary field_43074
Lnet/minecraft/class_8084;field_43074:I
named iconTextureWidth
Lnet/minecraft/client/gui/widget/IconButtonWidget;iconTextureWidth:I
-
iconTextureHeight
protected final int iconTextureHeight- Mappings:
Namespace Name Mixin selector official f
Leqf;f:I
intermediary field_43075
Lnet/minecraft/class_8084;field_43075:I
named iconTextureHeight
Lnet/minecraft/client/gui/widget/IconButtonWidget;iconTextureHeight:I
-
iconXOffset
private final int iconXOffset- Mappings:
Namespace Name Mixin selector official A
Leqf;A:I
intermediary field_42123
Lnet/minecraft/class_8084;field_42123:I
named iconXOffset
Lnet/minecraft/client/gui/widget/IconButtonWidget;iconXOffset:I
-
iconYOffset
private final int iconYOffset- Mappings:
Namespace Name Mixin selector official C
Leqf;C:I
intermediary field_42124
Lnet/minecraft/class_8084;field_42124:I
named iconYOffset
Lnet/minecraft/client/gui/widget/IconButtonWidget;iconYOffset:I
-
iconWidth
private final int iconWidth- Mappings:
Namespace Name Mixin selector official D
Leqf;D:I
intermediary field_42125
Lnet/minecraft/class_8084;field_42125:I
named iconWidth
Lnet/minecraft/client/gui/widget/IconButtonWidget;iconWidth:I
-
iconHeight
private final int iconHeight- Mappings:
Namespace Name Mixin selector official E
Leqf;E:I
intermediary field_42126
Lnet/minecraft/class_8084;field_42126:I
named iconHeight
Lnet/minecraft/client/gui/widget/IconButtonWidget;iconHeight:I
-
-
Constructor Details
-
IconButtonWidget
IconButtonWidget(Text message, int iconU, int iconV, int iconXOffset, int iconYOffset, int iconHoveredVOffset, int iconWidth, int iconHeight, int iconTextureWidth, int iconTextureHeight, Identifier iconTexture, ButtonWidget.PressAction onPress) - Mappings:
Namespace Name Mixin selector official <init>
Leqf;<init>(Lsw;IIIIIIIIILacq;Lepa$c;)V
intermediary <init>
Lnet/minecraft/class_8084;<init>(Lnet/minecraft/class_2561;IIIIIIIIILnet/minecraft/class_2960;Lnet/minecraft/class_4185$class_4241;)V
named <init>
Lnet/minecraft/client/gui/widget/IconButtonWidget;<init>(Lnet/minecraft/text/Text;IIIIIIIIILnet/minecraft/util/Identifier;Lnet/minecraft/client/gui/widget/ButtonWidget$PressAction;)V
-
-
Method Details
-
renderButton
- Overrides:
renderButton
in classPressableWidget
- Mappings:
Namespace Name Mixin selector official b
Leox;b(Leop;IIF)V
intermediary method_48579
Lnet/minecraft/class_339;method_48579(Lnet/minecraft/class_332;IIF)V
named renderButton
Lnet/minecraft/client/gui/widget/ClickableWidget;renderButton(Lnet/minecraft/client/gui/DrawContext;IIF)V
-
drawMessage
- Overrides:
drawMessage
in classPressableWidget
- Mappings:
Namespace Name Mixin selector official a
Leor;a(Leop;Leon;I)V
intermediary method_48589
Lnet/minecraft/class_4264;method_48589(Lnet/minecraft/class_332;Lnet/minecraft/class_327;I)V
named drawMessage
Lnet/minecraft/client/gui/widget/PressableWidget;drawMessage(Lnet/minecraft/client/gui/DrawContext;Lnet/minecraft/client/font/TextRenderer;I)V
-
getIconX
private int getIconX()- Mappings:
Namespace Name Mixin selector official a
Leqf;a()I
intermediary method_48600
Lnet/minecraft/class_8084;method_48600()I
named getIconX
Lnet/minecraft/client/gui/widget/IconButtonWidget;getIconX()I
-
getIconY
private int getIconY()- Mappings:
Namespace Name Mixin selector official b
Leqf;b()I
intermediary method_48602
Lnet/minecraft/class_8084;method_48602()I
named getIconY
Lnet/minecraft/client/gui/widget/IconButtonWidget;getIconY()I
-
builder
public static IconButtonWidget.Builder builder(Text message, Identifier texture, ButtonWidget.PressAction pressAction) - Mappings:
Namespace Name Mixin selector official a
Leqf;a(Lsw;Lacq;Lepa$c;)Leqf$a;
intermediary method_48601
Lnet/minecraft/class_8084;method_48601(Lnet/minecraft/class_2561;Lnet/minecraft/class_2960;Lnet/minecraft/class_4185$class_4241;)Lnet/minecraft/class_8084$class_8085;
named builder
Lnet/minecraft/client/gui/widget/IconButtonWidget;builder(Lnet/minecraft/text/Text;Lnet/minecraft/util/Identifier;Lnet/minecraft/client/gui/widget/ButtonWidget$PressAction;)Lnet/minecraft/client/gui/widget/IconButtonWidget$Builder;
-