Package net.minecraft.client.gui.widget
Class ButtonWidget
java.lang.Object
net.minecraft.client.gui.DrawableHelper
net.minecraft.client.gui.widget.ClickableWidget
net.minecraft.client.gui.widget.PressableWidget
net.minecraft.client.gui.widget.ButtonWidget
- All Implemented Interfaces:
Drawable
,Element
,Narratable
,Navigable
,Selectable
,Widget
- Direct Known Subclasses:
IconButtonWidget
,LockButtonWidget
,MerchantScreen.WidgetButtonPage
,PageTurnWidget
,PressableTextWidget
,RealmsMainScreen.CrossButton
,RealmsMainScreen.NewsButton
,RealmsMainScreen.PendingInvitesButton
,RealmsResetWorldScreen.FrameButton
,RealmsWorldSlotButton
,TexturedButtonWidget
- Mappings:
Namespace Name official eoc
intermediary net/minecraft/class_4185
named net/minecraft/client/gui/widget/ButtonWidget
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static interface
static interface
Nested classes/interfaces inherited from interface net.minecraft.client.gui.Selectable
Selectable.SelectionType
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
protected static final ButtonWidget.NarrationSupplier
static final int
static final int
protected final ButtonWidget.NarrationSupplier
protected final ButtonWidget.PressAction
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 class net.minecraft.client.gui.DrawableHelper
GUI_ICONS_TEXTURE, LIGHT_DIRT_BACKGROUND_TEXTURE, OPTIONS_BACKGROUND_TEXTURE, STATS_ICON_TEXTURE
Fields inherited from interface net.minecraft.client.gui.Element
MAX_DOUBLE_CLICK_INTERVAL
-
Constructor Summary
ModifierConstructorDescriptionprotected
ButtonWidget
(int x, int y, int width, int height, Text message, ButtonWidget.PressAction onPress, ButtonWidget.NarrationSupplier narrationSupplier) -
Method Summary
Modifier and TypeMethodDescriptionvoid
static ButtonWidget.Builder
builder
(Text message, ButtonWidget.PressAction onPress) protected MutableText
void
onPress()
Methods inherited from class net.minecraft.client.gui.widget.PressableWidget
drawMessage, keyPressed, onClick, renderButton
Methods inherited from class net.minecraft.client.gui.widget.ClickableWidget
appendDefaultNarrations, appendNarrations, clicked, drawScrollableText, drawScrollableText, drawTexture, forEachChild, getHeight, getMessage, getNarrationMessage, getNavigationFocus, getNavigationOrder, getNavigationPath, 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 net.minecraft.client.gui.DrawableHelper
disableScissor, drawBorder, drawCenteredTextWithShadow, drawCenteredTextWithShadow, drawCenteredTextWithShadow, drawHorizontalLine, drawNineSlicedTexture, drawNineSlicedTexture, drawNineSlicedTexture, drawRepeatingTexture, drawSprite, drawSprite, drawTexture, drawTexture, drawTexture, drawTexture, drawTextWithShadow, drawTextWithShadow, drawTextWithShadow, drawVerticalLine, drawWithOutline, enableScissor, fill, fill, fillGradient, fillGradient, fillGradient
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
-
DEFAULT_WIDTH_SMALL
public static final int DEFAULT_WIDTH_SMALL- See Also:
- Mappings:
Namespace Name Mixin selector official y
Leoc;y:I
intermediary field_39499
Lnet/minecraft/class_4185;field_39499:I
named DEFAULT_WIDTH_SMALL
Lnet/minecraft/client/gui/widget/ButtonWidget;DEFAULT_WIDTH_SMALL:I
-
DEFAULT_WIDTH
public static final int DEFAULT_WIDTH- See Also:
- Mappings:
Namespace Name Mixin selector official z
Leoc;z:I
intermediary field_39500
Lnet/minecraft/class_4185;field_39500:I
named DEFAULT_WIDTH
Lnet/minecraft/client/gui/widget/ButtonWidget;DEFAULT_WIDTH:I
-
DEFAULT_HEIGHT
public static final int DEFAULT_HEIGHT- See Also:
- Mappings:
Namespace Name Mixin selector official A
Leoc;A:I
intermediary field_39501
Lnet/minecraft/class_4185;field_39501:I
named DEFAULT_HEIGHT
Lnet/minecraft/client/gui/widget/ButtonWidget;DEFAULT_HEIGHT:I
-
DEFAULT_NARRATION_SUPPLIER
- Mappings:
Namespace Name Mixin selector official B
Leoc;B:Leoc$b;
intermediary field_40754
Lnet/minecraft/class_4185;field_40754:Lnet/minecraft/class_4185$class_7841;
named DEFAULT_NARRATION_SUPPLIER
Lnet/minecraft/client/gui/widget/ButtonWidget;DEFAULT_NARRATION_SUPPLIER:Lnet/minecraft/client/gui/widget/ButtonWidget$NarrationSupplier;
-
onPress
- Mappings:
Namespace Name Mixin selector official C
Leoc;C:Leoc$c;
intermediary field_22767
Lnet/minecraft/class_4185;field_22767:Lnet/minecraft/class_4185$class_4241;
named onPress
Lnet/minecraft/client/gui/widget/ButtonWidget;onPress:Lnet/minecraft/client/gui/widget/ButtonWidget$PressAction;
-
narrationSupplier
- Mappings:
Namespace Name Mixin selector official D
Leoc;D:Leoc$b;
intermediary field_40755
Lnet/minecraft/class_4185;field_40755:Lnet/minecraft/class_4185$class_7841;
named narrationSupplier
Lnet/minecraft/client/gui/widget/ButtonWidget;narrationSupplier:Lnet/minecraft/client/gui/widget/ButtonWidget$NarrationSupplier;
-
-
Constructor Details
-
ButtonWidget
protected ButtonWidget(int x, int y, int width, int height, Text message, ButtonWidget.PressAction onPress, ButtonWidget.NarrationSupplier narrationSupplier) - Mappings:
Namespace Name Mixin selector official <init>
Leoc;<init>(IIIILtj;Leoc$c;Leoc$b;)V
intermediary <init>
Lnet/minecraft/class_4185;<init>(IIIILnet/minecraft/class_2561;Lnet/minecraft/class_4185$class_4241;Lnet/minecraft/class_4185$class_7841;)V
named <init>
Lnet/minecraft/client/gui/widget/ButtonWidget;<init>(IIIILnet/minecraft/text/Text;Lnet/minecraft/client/gui/widget/ButtonWidget$PressAction;Lnet/minecraft/client/gui/widget/ButtonWidget$NarrationSupplier;)V
-
-
Method Details
-
builder
- Mappings:
Namespace Name Mixin selector official a
Leoc;a(Ltj;Leoc$c;)Leoc$a;
intermediary method_46430
Lnet/minecraft/class_4185;method_46430(Lnet/minecraft/class_2561;Lnet/minecraft/class_4185$class_4241;)Lnet/minecraft/class_4185$class_7840;
named builder
Lnet/minecraft/client/gui/widget/ButtonWidget;builder(Lnet/minecraft/text/Text;Lnet/minecraft/client/gui/widget/ButtonWidget$PressAction;)Lnet/minecraft/client/gui/widget/ButtonWidget$Builder;
-
onPress
public void onPress()- Specified by:
onPress
in classPressableWidget
- Mappings:
Namespace Name Mixin selector official c
Lent;c()V
intermediary method_25306
Lnet/minecraft/class_4264;method_25306()V
named onPress
Lnet/minecraft/client/gui/widget/PressableWidget;onPress()V
-
getNarrationMessage
- Overrides:
getNarrationMessage
in classClickableWidget
- Mappings:
Namespace Name Mixin selector official aH_
Lenz;aH_()Ltw;
intermediary method_25360
Lnet/minecraft/class_339;method_25360()Lnet/minecraft/class_5250;
named getNarrationMessage
Lnet/minecraft/client/gui/widget/ClickableWidget;getNarrationMessage()Lnet/minecraft/text/MutableText;
-
appendClickableNarrations
- Specified by:
appendClickableNarrations
in classClickableWidget
- Mappings:
Namespace Name Mixin selector official a
Lenz;a(Lere;)V
intermediary method_47399
Lnet/minecraft/class_339;method_47399(Lnet/minecraft/class_6382;)V
named appendClickableNarrations
Lnet/minecraft/client/gui/widget/ClickableWidget;appendClickableNarrations(Lnet/minecraft/client/gui/screen/narration/NarrationMessageBuilder;)V
-