@Environment(value=CLIENT) public class TexturedButtonWidget extends ButtonWidget
ButtonWidget.PressAction, ButtonWidget.TooltipSupplier| Modifier and Type | Field and Description |
|---|---|
private int |
hoveredVOffset |
private Identifier |
texture |
private int |
textureHeight |
private int |
textureWidth |
private int |
u |
private int |
v |
EMPTY, onPress, tooltipSupplieractive, alpha, height, hovered, nextNarration, visible, WIDGETS_LOCATION, width, x, yGUI_ICONS_TEXTURE, OPTIONS_BACKGROUND_TEXTURE, STATS_ICON_TEXTURE| Constructor and Description |
|---|
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,
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 int2,
int int3,
int int4,
int int5,
int int6,
int int7,
int int8,
Identifier identifier,
int int9,
int int10,
ButtonWidget.PressAction pressAction,
Text text) |
| Modifier and Type | Method and Description |
|---|---|
void |
renderButton(MatrixStack matrices,
int mouseX,
int mouseY,
float delta) |
void |
setPos(int x,
int y) |
onPress, renderToolTipkeyPressed, onClickchangeFocus, clicked, getHeight, getMessage, getNarrationMessage, getWidth, getYImage, isFocused, isHovered, isMouseOver, isValidClickButton, mouseClicked, mouseDragged, mouseReleased, narrate, onDrag, onFocusedChanged, onRelease, playDownSound, queueNarration, render, renderBg, setAlpha, setFocused, setMessage, setWidthdrawCenteredString, drawCenteredText, drawHorizontalLine, drawSprite, drawStringWithShadow, drawTexture, drawTexture, drawTexture, drawTexture, drawTextWithShadow, drawVerticalLine, fill, fillGradient, fillGradient, getZOffset, method_29343, setZOffsetclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcharTyped, keyReleased, mouseMoved, mouseScrolledprivate final Identifier texture
private final int u
private final int v
private final int hoveredVOffset
private final int textureWidth
private final int textureHeight
public TexturedButtonWidget(int x,
int y,
int width,
int height,
int u,
int v,
int hoveredVOffset,
Identifier texture,
ButtonWidget.PressAction pressAction)
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)
public TexturedButtonWidget(int int2,
int int3,
int int4,
int int5,
int int6,
int int7,
int int8,
Identifier identifier,
int int9,
int int10,
ButtonWidget.PressAction pressAction,
Text text)
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)
public void setPos(int x,
int y)
public void renderButton(MatrixStack matrices, int mouseX, int mouseY, float delta)
renderButton in class ButtonWidget