Package net.minecraft.client.gui.widget
Class TexturedButtonWidget
java.lang.Object
net.minecraft.client.gui.DrawableHelper
net.minecraft.client.gui.widget.AbstractButtonWidget
net.minecraft.client.gui.widget.AbstractPressableButtonWidget
net.minecraft.client.gui.widget.ButtonWidget
net.minecraft.client.gui.widget.TexturedButtonWidget
@Environment(CLIENT) public class TexturedButtonWidget extends ButtonWidget
- Mappings:
Namespace Name official dsd
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.PressAction, ButtonWidget.TooltipSupplier
-
Field Summary
Fields Modifier and Type Field Description private int
hoveredVOffset
private Identifier
texture
private int
textureHeight
private int
textureWidth
private int
u
private int
v
Fields inherited from class net.minecraft.client.gui.widget.ButtonWidget
EMPTY, onPress, tooltipSupplier
Fields inherited from class net.minecraft.client.gui.widget.AbstractButtonWidget
active, alpha, height, hovered, nextNarration, visible, WIDGETS_LOCATION, width, x, y
Fields inherited from class net.minecraft.client.gui.DrawableHelper
GUI_ICONS_TEXTURE, OPTIONS_BACKGROUND_TEXTURE, STATS_ICON_TEXTURE
-
Constructor Summary
Constructors Constructor Description TexturedButtonWidget(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, ButtonWidget.TooltipSupplier tooltipSupplier, Text text)
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 text)
TexturedButtonWidget(int x, int y, int width, int height, int u, int v, int hoveredVOffset, Identifier texture, ButtonWidget.PressAction pressAction)
-
Method Summary
Modifier and Type Method Description void
renderButton(MatrixStack matrices, int mouseX, int mouseY, float delta)
void
setPos(int x, int y)
Methods inherited from class net.minecraft.client.gui.widget.ButtonWidget
onPress, renderToolTip
Methods inherited from class net.minecraft.client.gui.widget.AbstractPressableButtonWidget
keyPressed, onClick
Methods inherited from class net.minecraft.client.gui.widget.AbstractButtonWidget
changeFocus, clicked, getHeight, getMessage, getNarrationMessage, getNarrationMessage, getWidth, getYImage, isFocused, isHovered, isMouseOver, isValidClickButton, mouseClicked, mouseDragged, mouseReleased, narrate, onDrag, onFocusedChanged, onRelease, playDownSound, queueNarration, render, renderBg, setAlpha, setFocused, setMessage, setWidth
Methods inherited from class net.minecraft.client.gui.DrawableHelper
drawCenteredString, drawCenteredText, drawHorizontalLine, drawSprite, drawStringWithShadow, drawTexture, drawTexture, drawTexture, drawTexture, drawTextWithShadow, drawVerticalLine, fill, fillGradient, fillGradient, getZOffset, method_29343, method_33284, 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
Ldsd;a:Lwb;
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
Ldsd;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
Ldsd;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
Ldsd;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
Ldsd;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 v
Ldsd;v: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, int hoveredVOffset, Identifier texture, ButtonWidget.PressAction pressAction)- Mappings:
Namespace Name Mixin selector official <init>
Ldsd;<init>(IIIIIIILwb;Ldru$a;)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>
Ldsd;<init>(IIIIIIILwb;IILdru$a;)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 text)- Mappings:
Namespace Name Mixin selector official <init>
Ldsd;<init>(IIIIIIILwb;IILdru$a;Loi;)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
-
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, ButtonWidget.TooltipSupplier tooltipSupplier, Text text)- Mappings:
Namespace Name Mixin selector official <init>
Ldsd;<init>(IIIIIIILwb;IILdru$a;Ldru$b;Loi;)V
intermediary <init>
Lnet/minecraft/class_344;<init>(IIIIIIILnet/minecraft/class_2960;IILnet/minecraft/class_4185$class_4241;Lnet/minecraft/class_4185$class_5316;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/client/gui/widget/ButtonWidget$TooltipSupplier;Lnet/minecraft/text/Text;)V
-
-
Method Details
-
setPos
public void setPos(int x, int y)- Mappings:
Namespace Name Mixin selector official a
Ldsd;a(II)V
intermediary method_1893
Lnet/minecraft/class_344;method_1893(II)V
named setPos
Lnet/minecraft/client/gui/widget/TexturedButtonWidget;setPos(II)V
-
renderButton
- Overrides:
renderButton
in classButtonWidget
- Mappings:
Namespace Name Mixin selector official b
Ldrs;b(Ldlr;IIF)V
intermediary method_25359
Lnet/minecraft/class_339;method_25359(Lnet/minecraft/class_4587;IIF)V
named renderButton
Lnet/minecraft/client/gui/widget/AbstractButtonWidget;renderButton(Lnet/minecraft/client/util/math/MatrixStack;IIF)V
-