Package net.minecraft.client.gui.widget
Class TexturedButtonWidget
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
net.minecraft.client.gui.widget.TexturedButtonWidget
- All Implemented Interfaces:
Drawable
,Element
,Narratable
,Selectable
- Mappings:
Namespace Name official elk
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
Modifier and TypeFieldDescriptionprivate final int
private final Identifier
private 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.ClickableWidget
active, alpha, 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
ConstructorDescriptionTexturedButtonWidget
(int x, int y, int width, int height, int u, int v, int hoveredVOffset, Identifier texture, int textureWidth, int textureHeight, ButtonWidget.PressAction pressAction) TexturedButtonWidget
(int x, int y, int width, int height, int u, int v, int hoveredVOffset, Identifier texture, int textureWidth, int textureHeight, ButtonWidget.PressAction pressAction, Text message) TexturedButtonWidget
(int x, int y, int width, int height, int u, int v, int hoveredVOffset, Identifier texture, ButtonWidget.PressAction pressAction) TexturedButtonWidget
(int x, int y, int width, int height, int u, int v, Identifier texture, ButtonWidget.PressAction pressAction) -
Method Summary
Modifier and TypeMethodDescriptionvoid
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, changeFocus, clicked, getHeight, getMessage, getNarrationMessage, getTooltipPositioner, getType, getWidth, getX, getY, getYImage, isFocused, isHovered, isMouseOver, isNarratable, isValidClickButton, mouseClicked, mouseDragged, mouseReleased, onDrag, onFocusedChanged, onRelease, playDownSound, render, renderBackground, setAlpha, setFocused, setMessage, setPos, setTooltip, setTooltipDelay, setWidth, setX, setY
Methods inherited from class net.minecraft.client.gui.DrawableHelper
disableScissor, drawCenteredText, drawCenteredText, drawCenteredTextWithShadow, drawHorizontalLine, drawSprite, drawStringWithShadow, drawTexture, drawTexture, drawTexture, drawTexture, drawTextWithShadow, drawVerticalLine, drawWithOutline, drawWithShadow, enableScissor, 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, keyReleased, mouseMoved, mouseScrolled
-
Field Details
-
texture
- Mappings:
Namespace Name Mixin selector official a
Lelk;a:Lacf;
intermediary field_2127
Lnet/minecraft/class_344;field_2127:Lnet/minecraft/class_2960;
named texture
Lnet/minecraft/client/gui/widget/TexturedButtonWidget;texture:Lnet/minecraft/util/Identifier;
-
u
private final int u- Mappings:
Namespace Name Mixin selector official b
Lelk;b:I
intermediary field_2126
Lnet/minecraft/class_344;field_2126:I
named u
Lnet/minecraft/client/gui/widget/TexturedButtonWidget;u:I
-
v
private final int v- Mappings:
Namespace Name Mixin selector official c
Lelk;c:I
intermediary field_2125
Lnet/minecraft/class_344;field_2125:I
named v
Lnet/minecraft/client/gui/widget/TexturedButtonWidget;v:I
-
hoveredVOffset
private final int hoveredVOffset- Mappings:
Namespace Name Mixin selector official d
Lelk;d:I
intermediary field_19079
Lnet/minecraft/class_344;field_19079:I
named hoveredVOffset
Lnet/minecraft/client/gui/widget/TexturedButtonWidget;hoveredVOffset:I
-
textureWidth
private final int textureWidth- Mappings:
Namespace Name Mixin selector official e
Lelk;e:I
intermediary field_2124
Lnet/minecraft/class_344;field_2124:I
named textureWidth
Lnet/minecraft/client/gui/widget/TexturedButtonWidget;textureWidth:I
-
textureHeight
private final int textureHeight- Mappings:
Namespace Name Mixin selector official f
Lelk;f:I
intermediary field_19080
Lnet/minecraft/class_344;field_19080:I
named textureHeight
Lnet/minecraft/client/gui/widget/TexturedButtonWidget;textureHeight:I
-
-
Constructor Details
-
TexturedButtonWidget
public TexturedButtonWidget(int x, int y, int width, int height, int u, int v, Identifier texture, ButtonWidget.PressAction pressAction) - Mappings:
Namespace Name Mixin selector official <init>
Lelk;<init>(IIIIIILacf;Leky$c;)V
intermediary <init>
Lnet/minecraft/class_344;<init>(IIIIIILnet/minecraft/class_2960;Lnet/minecraft/class_4185$class_4241;)V
named <init>
Lnet/minecraft/client/gui/widget/TexturedButtonWidget;<init>(IIIIIILnet/minecraft/util/Identifier;Lnet/minecraft/client/gui/widget/ButtonWidget$PressAction;)V
-
TexturedButtonWidget
public TexturedButtonWidget(int x, int y, int width, int height, int u, int v, int hoveredVOffset, Identifier texture, ButtonWidget.PressAction pressAction) - Mappings:
Namespace Name Mixin selector official <init>
Lelk;<init>(IIIIIIILacf;Leky$c;)V
intermediary <init>
Lnet/minecraft/class_344;<init>(IIIIIIILnet/minecraft/class_2960;Lnet/minecraft/class_4185$class_4241;)V
named <init>
Lnet/minecraft/client/gui/widget/TexturedButtonWidget;<init>(IIIIIIILnet/minecraft/util/Identifier;Lnet/minecraft/client/gui/widget/ButtonWidget$PressAction;)V
-
TexturedButtonWidget
public TexturedButtonWidget(int x, int y, int width, int height, int u, int v, int hoveredVOffset, Identifier texture, int textureWidth, int textureHeight, ButtonWidget.PressAction pressAction) - Mappings:
Namespace Name Mixin selector official <init>
Lelk;<init>(IIIIIIILacf;IILeky$c;)V
intermediary <init>
Lnet/minecraft/class_344;<init>(IIIIIIILnet/minecraft/class_2960;IILnet/minecraft/class_4185$class_4241;)V
named <init>
Lnet/minecraft/client/gui/widget/TexturedButtonWidget;<init>(IIIIIIILnet/minecraft/util/Identifier;IILnet/minecraft/client/gui/widget/ButtonWidget$PressAction;)V
-
TexturedButtonWidget
public TexturedButtonWidget(int x, int y, int width, int height, int u, int v, int hoveredVOffset, Identifier texture, int textureWidth, int textureHeight, ButtonWidget.PressAction pressAction, Text message) - Mappings:
Namespace Name Mixin selector official <init>
Lelk;<init>(IIIIIIILacf;IILeky$c;Lss;)V
intermediary <init>
Lnet/minecraft/class_344;<init>(IIIIIIILnet/minecraft/class_2960;IILnet/minecraft/class_4185$class_4241;Lnet/minecraft/class_2561;)V
named <init>
Lnet/minecraft/client/gui/widget/TexturedButtonWidget;<init>(IIIIIIILnet/minecraft/util/Identifier;IILnet/minecraft/client/gui/widget/ButtonWidget$PressAction;Lnet/minecraft/text/Text;)V
-
-
Method Details
-
renderButton
- Overrides:
renderButton
in classClickableWidget
- Mappings:
Namespace Name Mixin selector official b
Lekw;b(Leed;IIF)V
intermediary method_25359
Lnet/minecraft/class_339;method_25359(Lnet/minecraft/class_4587;IIF)V
named renderButton
Lnet/minecraft/client/gui/widget/ClickableWidget;renderButton(Lnet/minecraft/client/util/math/MatrixStack;IIF)V
-