Package net.minecraft.client.gui.widget
Class IconButtonWidget
- All Implemented Interfaces:
Drawable
,Element
,Narratable
,Navigable
,Selectable
,Widget
- Mappings:
Namespace Name official enx
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 static final int
private final int
private final int
private final int
private final int
Fields inherited from class net.minecraft.client.gui.widget.TexturedButtonWidget
hoveredVOffset, texture, textureHeight, textureWidth, u, v
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.ClickableWidget
ACCESSIBILITY_TEXTURE, active, alpha, field_41797, field_42118, field_42119, field_42120, height, hovered, visible, WIDGETS_TEXTURE, width
Fields inherited from class net.minecraft.client.gui.DrawableHelper
GUI_ICONS_TEXTURE, OPTIONS_BACKGROUND_TEXTURE, STATS_ICON_TEXTURE
Fields inherited from interface net.minecraft.client.gui.Element
MAX_DOUBLE_CLICK_INTERVAL
-
Constructor Summary
ConstructorDescriptionIconButtonWidget
(Text message, int u, int v, int xOffset, int yOffset, int hoveredVOffset, int iconWidth, int iconHeight, int textureWidth, int textureHeight, Identifier texture, ButtonWidget.PressAction pressAction) -
Method Summary
Modifier and TypeMethodDescriptionstatic IconButtonWidget.Builder
builder
(Text message, Identifier texture, ButtonWidget.PressAction pressAction) void
drawMessage
(MatrixStack matrices, TextRenderer textRenderer, int centerX, int y, int color) private int
private int
void
renderButton
(MatrixStack matrices, 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, drawTexture, forEachChild, getHeight, getMessage, getNarrationMessage, getNavigationFocus, getNavigationOrder, getNavigationPath, getTexture, getTooltipPositioner, getType, getWidth, getX, getY, getYImage, isFocused, isHovered, isMouseOver, isNarratable, isValidClickButton, mouseClicked, mouseDragged, mouseReleased, onDrag, onRelease, playDownSound, render, renderBackground, renderButton, setAlpha, setFocused, setMessage, setNavigationOrder, setTooltip, setTooltipDelay, setWidth, setX, setY
Methods inherited from class net.minecraft.client.gui.DrawableHelper
disableScissor, drawCenteredText, drawCenteredText, drawCenteredTextWithShadow, drawHorizontalLine, drawNineSlicedTexture, drawNineSlicedTexture, drawRepeatingTexture, drawSprite, drawSprite, drawStringWithShadow, drawTexture, drawTexture, drawTexture, drawTexture, drawTextWithShadow, drawVerticalLine, drawWithOutline, drawWithShadow, enableScissor, fill, fill, fillGradient, fillGradient, fillGradient, getZOffset, setZOffset
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
-
field_42122
private static final int field_42122- See Also:
- Mappings:
Namespace Name Mixin selector official B
Lenx;B:I
intermediary field_42122
Lnet/minecraft/class_8084;field_42122:I
named field_42122
Lnet/minecraft/client/gui/widget/IconButtonWidget;field_42122:I
-
xOffset
private final int xOffset- Mappings:
Namespace Name Mixin selector official C
Lenx;C:I
intermediary field_42123
Lnet/minecraft/class_8084;field_42123:I
named xOffset
Lnet/minecraft/client/gui/widget/IconButtonWidget;xOffset:I
-
yOffset
private final int yOffset- Mappings:
Namespace Name Mixin selector official D
Lenx;D:I
intermediary field_42124
Lnet/minecraft/class_8084;field_42124:I
named yOffset
Lnet/minecraft/client/gui/widget/IconButtonWidget;yOffset:I
-
iconWidth
private final int iconWidth- Mappings:
Namespace Name Mixin selector official E
Lenx;E: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 F
Lenx;F: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 u, int v, int xOffset, int yOffset, int hoveredVOffset, int iconWidth, int iconHeight, int textureWidth, int textureHeight, Identifier texture, ButtonWidget.PressAction pressAction) - Mappings:
Namespace Name Mixin selector official <init>
Lenx;<init>(Ltd;IIIIIIIIILacw;Lemv$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 classTexturedButtonWidget
- Mappings:
Namespace Name Mixin selector official b
Lems;b(Lega;IIF)V
intermediary method_48579
Lnet/minecraft/class_339;method_48579(Lnet/minecraft/class_4587;IIF)V
named renderButton
Lnet/minecraft/client/gui/widget/ClickableWidget;renderButton(Lnet/minecraft/client/util/math/MatrixStack;IIF)V
-
drawMessage
public void drawMessage(MatrixStack matrices, TextRenderer textRenderer, int centerX, int y, int color) - Overrides:
drawMessage
in classClickableWidget
- Mappings:
Namespace Name Mixin selector official a
Lems;a(Lega;Lemi;III)V
intermediary method_48589
Lnet/minecraft/class_339;method_48589(Lnet/minecraft/class_4587;Lnet/minecraft/class_327;III)V
named drawMessage
Lnet/minecraft/client/gui/widget/ClickableWidget;drawMessage(Lnet/minecraft/client/util/math/MatrixStack;Lnet/minecraft/client/font/TextRenderer;III)V
-
getXWithOffset
private int getXWithOffset()- Mappings:
Namespace Name Mixin selector official a
Lenx;a()I
intermediary method_48600
Lnet/minecraft/class_8084;method_48600()I
named getXWithOffset
Lnet/minecraft/client/gui/widget/IconButtonWidget;getXWithOffset()I
-
getYWithOffset
private int getYWithOffset()- Mappings:
Namespace Name Mixin selector official b
Lenx;b()I
intermediary method_48602
Lnet/minecraft/class_8084;method_48602()I
named getYWithOffset
Lnet/minecraft/client/gui/widget/IconButtonWidget;getYWithOffset()I
-
builder
public static IconButtonWidget.Builder builder(Text message, Identifier texture, ButtonWidget.PressAction pressAction) - Mappings:
Namespace Name Mixin selector official a
Lenx;a(Ltd;Lacw;Lemv$c;)Lenx$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;
-