Package net.minecraft.client.gui.widget
Class TextIconButtonWidget
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.TextIconButtonWidget
- All Implemented Interfaces:
Drawable
,Element
,Narratable
,Navigable
,Selectable
,Widget
- Direct Known Subclasses:
TextIconButtonWidget.IconOnly
,TextIconButtonWidget.WithText
A button with an icon and an optional text.
- See Also:
- Mappings:
Namespace Name named net/minecraft/client/gui/widget/TextIconButtonWidget
intermediary net/minecraft/class_8662
official fiz
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
static class
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 TypeFieldDescriptionprotected final Identifier
protected final int
protected final int
Fields inherited from class net.minecraft.client.gui.widget.ButtonWidget
DEFAULT_HEIGHT, DEFAULT_NARRATION_SUPPLIER, DEFAULT_WIDTH, DEFAULT_WIDTH_SMALL, field_46856, field_49479, narrationSupplier, onPress
Fields inherited from class net.minecraft.client.gui.widget.PressableWidget
field_43050
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
ConstructorDescriptionTextIconButtonWidget
(int width, int height, Text message, int textureWidth, int textureHeight, Identifier texture, ButtonWidget.PressAction onPress, ButtonWidget.NarrationSupplier narrationSupplier) -
Method Summary
Modifier and TypeMethodDescriptionstatic TextIconButtonWidget.Builder
builder
(Text text, ButtonWidget.PressAction onPress, boolean hideLabel) Methods inherited from class net.minecraft.client.gui.widget.ButtonWidget
appendClickableNarrations, builder, getNarrationMessage, onPress
Methods inherited from class net.minecraft.client.gui.widget.PressableWidget
drawMessage, keyPressed, onClick, renderWidget
Methods inherited from class net.minecraft.client.gui.widget.ClickableWidget
appendDefaultNarrations, appendNarrations, clicked, drawScrollableText, drawScrollableText, drawScrollableText, forEachChild, getBottom, getHeight, getMessage, getNarrationMessage, getNavigationFocus, getNavigationOrder, getNavigationPath, getRight, getTooltip, getType, getWidth, getX, getY, isFocused, isHovered, isMouseOver, isNarratable, isSelected, isValidClickButton, mouseClicked, mouseDragged, mouseReleased, onDrag, onRelease, 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, getFocusedPath, keyReleased, mouseMoved, mouseScrolled
Methods inherited from interface net.minecraft.client.gui.widget.Widget
setPosition
-
Field Details
-
texture
- Mappings:
Namespace Name Mixin selector named texture
Lnet/minecraft/client/gui/widget/TextIconButtonWidget;texture:Lnet/minecraft/util/Identifier;
intermediary field_45379
Lnet/minecraft/class_8662;field_45379:Lnet/minecraft/class_2960;
official a
Lfiz;a:Lakk;
-
textureWidth
protected final int textureWidth- Mappings:
Namespace Name Mixin selector named textureWidth
Lnet/minecraft/client/gui/widget/TextIconButtonWidget;textureWidth:I
intermediary field_45380
Lnet/minecraft/class_8662;field_45380:I
official b
Lfiz;b:I
-
textureHeight
protected final int textureHeight- Mappings:
Namespace Name Mixin selector named textureHeight
Lnet/minecraft/client/gui/widget/TextIconButtonWidget;textureHeight:I
intermediary field_45381
Lnet/minecraft/class_8662;field_45381:I
official c
Lfiz;c:I
-
-
Constructor Details
-
TextIconButtonWidget
TextIconButtonWidget(int width, int height, Text message, int textureWidth, int textureHeight, Identifier texture, ButtonWidget.PressAction onPress, @Nullable ButtonWidget.NarrationSupplier narrationSupplier) - Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/client/gui/widget/TextIconButtonWidget;<init>(IILnet/minecraft/text/Text;IILnet/minecraft/util/Identifier;Lnet/minecraft/client/gui/widget/ButtonWidget$PressAction;Lnet/minecraft/client/gui/widget/ButtonWidget$NarrationSupplier;)V
intermediary <init>
Lnet/minecraft/class_8662;<init>(IILnet/minecraft/class_2561;IILnet/minecraft/class_2960;Lnet/minecraft/class_4185$class_4241;Lnet/minecraft/class_4185$class_7841;)V
official <init>
Lfiz;<init>(IILwu;IILakk;Lfhu$c;Lfhu$b;)V
-
-
Method Details
-
builder
public static TextIconButtonWidget.Builder builder(Text text, ButtonWidget.PressAction onPress, boolean hideLabel) - Mappings:
Namespace Name Mixin selector named builder
Lnet/minecraft/client/gui/widget/TextIconButtonWidget;builder(Lnet/minecraft/text/Text;Lnet/minecraft/client/gui/widget/ButtonWidget$PressAction;Z)Lnet/minecraft/client/gui/widget/TextIconButtonWidget$Builder;
intermediary method_52723
Lnet/minecraft/class_8662;method_52723(Lnet/minecraft/class_2561;Lnet/minecraft/class_4185$class_4241;Z)Lnet/minecraft/class_8662$class_8663;
official a
Lfiz;a(Lwu;Lfhu$c;Z)Lfiz$a;
-