Package net.minecraft.client.gui.widget
Class TexturedButtonWidget
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.TexturedButtonWidget
- All Implemented Interfaces:
Drawable
,Element
,Narratable
,Navigable
,Selectable
,Widget
- Direct Known Subclasses:
RealmsMainScreen.CrossButton
- Mappings:
Namespace Name official exs
intermediary net/minecraft/class_344
named net/minecraft/client/gui/widget/TexturedButtonWidget
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.client.gui.widget.ButtonWidget
ButtonWidget.Builder, ButtonWidget.NarrationSupplier, ButtonWidget.PressAction
Nested classes/interfaces inherited from interface net.minecraft.client.gui.Selectable
Selectable.SelectionType
-
Field Summary
Fields inherited from class net.minecraft.client.gui.widget.ButtonWidget
DEFAULT_HEIGHT, DEFAULT_NARRATION_SUPPLIER, DEFAULT_WIDTH, DEFAULT_WIDTH_SMALL, field_46856, 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
ConstructorDescriptionTexturedButtonWidget
(int x, int y, int width, int height, ButtonTextures textures, ButtonWidget.PressAction pressAction) TexturedButtonWidget
(int x, int y, int width, int height, ButtonTextures textures, ButtonWidget.PressAction pressAction, Text text) TexturedButtonWidget
(int width, int height, ButtonTextures textures, ButtonWidget.PressAction pressAction, Text text) -
Method Summary
Modifier and TypeMethodDescriptionvoid
renderWidget
(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
drawMessage, keyPressed, onClick
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
-
textures
- Mappings:
Namespace Name Mixin selector official a
Lexs;a:Leyt;
intermediary field_45356
Lnet/minecraft/class_344;field_45356:Lnet/minecraft/class_8666;
named textures
Lnet/minecraft/client/gui/widget/TexturedButtonWidget;textures:Lnet/minecraft/client/gui/screen/ButtonTextures;
-
-
Constructor Details
-
TexturedButtonWidget
public TexturedButtonWidget(int x, int y, int width, int height, ButtonTextures textures, ButtonWidget.PressAction pressAction) - Mappings:
Namespace Name Mixin selector official <init>
Lexs;<init>(IIIILeyt;Lexg$c;)V
intermediary <init>
Lnet/minecraft/class_344;<init>(IIIILnet/minecraft/class_8666;Lnet/minecraft/class_4185$class_4241;)V
named <init>
Lnet/minecraft/client/gui/widget/TexturedButtonWidget;<init>(IIIILnet/minecraft/client/gui/screen/ButtonTextures;Lnet/minecraft/client/gui/widget/ButtonWidget$PressAction;)V
-
TexturedButtonWidget
public TexturedButtonWidget(int x, int y, int width, int height, ButtonTextures textures, ButtonWidget.PressAction pressAction, Text text) - Mappings:
Namespace Name Mixin selector official <init>
Lexs;<init>(IIIILeyt;Lexg$c;Lvf;)V
intermediary <init>
Lnet/minecraft/class_344;<init>(IIIILnet/minecraft/class_8666;Lnet/minecraft/class_4185$class_4241;Lnet/minecraft/class_2561;)V
named <init>
Lnet/minecraft/client/gui/widget/TexturedButtonWidget;<init>(IIIILnet/minecraft/client/gui/screen/ButtonTextures;Lnet/minecraft/client/gui/widget/ButtonWidget$PressAction;Lnet/minecraft/text/Text;)V
-
TexturedButtonWidget
public TexturedButtonWidget(int width, int height, ButtonTextures textures, ButtonWidget.PressAction pressAction, Text text) - Mappings:
Namespace Name Mixin selector official <init>
Lexs;<init>(IILeyt;Lexg$c;Lvf;)V
intermediary <init>
Lnet/minecraft/class_344;<init>(IILnet/minecraft/class_8666;Lnet/minecraft/class_4185$class_4241;Lnet/minecraft/class_2561;)V
named <init>
Lnet/minecraft/client/gui/widget/TexturedButtonWidget;<init>(IILnet/minecraft/client/gui/screen/ButtonTextures;Lnet/minecraft/client/gui/widget/ButtonWidget$PressAction;Lnet/minecraft/text/Text;)V
-
-
Method Details
-
renderWidget
- Overrides:
renderWidget
in classPressableWidget
- Mappings:
Namespace Name Mixin selector official b
Lexe;b(Lewu;IIF)V
intermediary method_48579
Lnet/minecraft/class_339;method_48579(Lnet/minecraft/class_332;IIF)V
named renderWidget
Lnet/minecraft/client/gui/widget/ClickableWidget;renderWidget(Lnet/minecraft/client/gui/DrawContext;IIF)V
-