@Environment(value=CLIENT) public class TexturedButtonWidget extends ButtonWidget
ButtonWidget.PressAction| Modifier and Type | Field and Description |
|---|---|
private int |
hoveredVOffset |
private Identifier |
texture |
private int |
textureHeight |
private int |
textureWidth |
private int |
u |
private int |
v |
onPressactive, alpha, height, hovered, nextNarration, visible, WIDGETS_LOCATION, width, x, yBACKGROUND_TEXTURE, GUI_ICONS_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,
String text) |
| Modifier and Type | Method and Description |
|---|---|
void |
renderButton(int mouseX,
int mouseY,
float delta) |
void |
setPos(int x,
int y) |
onPresskeyPressed, onClickchangeFocus, clicked, getHeight, getMessage, getNarrationMessage, getWidth, getYImage, isFocused, isHovered, isMouseOver, isValidClickButton, mouseClicked, mouseDragged, mouseReleased, narrate, onDrag, onFocusedChanged, onRelease, playDownSound, queueNarration, render, renderBg, renderToolTip, setAlpha, setFocused, setMessage, setWidthdrawCenteredString, drawHorizontalLine, drawSprite, drawString, drawTexture, drawTexture, drawTexture, drawTexture, drawTexturedQuad, drawVerticalLine, fill, fill, fillGradient, getZOffset, 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 x,
int y,
int width,
int height,
int u,
int v,
int hoveredVOffset,
Identifier texture,
int textureWidth,
int textureHeight,
ButtonWidget.PressAction pressAction,
String text)
public void setPos(int x,
int y)
public void renderButton(int mouseX,
int mouseY,
float delta)
renderButton in class AbstractButtonWidget