@Environment(value=CLIENT) public class ButtonWidget extends AbstractPressableButtonWidget
| Modifier and Type | Class and Description |
|---|---|
static interface |
ButtonWidget.class_5316 |
static interface |
ButtonWidget.PressAction |
| Modifier and Type | Field and Description |
|---|---|
static ButtonWidget.class_5316 |
field_25035 |
protected ButtonWidget.class_5316 |
field_25036 |
protected ButtonWidget.PressAction |
onPress |
active, alpha, height, hovered, nextNarration, visible, WIDGETS_LOCATION, width, x, yBACKGROUND_TEXTURE, GUI_ICONS_TEXTURE, STATS_ICON_TEXTURE| Constructor and Description |
|---|
ButtonWidget(int x,
int y,
int width,
int height,
Text message,
ButtonWidget.PressAction onPress) |
ButtonWidget(int int2,
int int3,
int int4,
int int5,
Text text,
ButtonWidget.PressAction pressAction,
ButtonWidget.class_5316 class_5316) |
| Modifier and Type | Method and Description |
|---|---|
void |
onPress() |
void |
renderButton(MatrixStack matrices,
int mouseX,
int mouseY,
float delta) |
void |
renderToolTip(MatrixStack matrixStack,
int int2,
int int3) |
keyPressed, 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, mouseScrolledpublic static final ButtonWidget.class_5316 field_25035
protected final ButtonWidget.PressAction onPress
protected final ButtonWidget.class_5316 field_25036
public ButtonWidget(int x,
int y,
int width,
int height,
Text message,
ButtonWidget.PressAction onPress)
public ButtonWidget(int int2,
int int3,
int int4,
int int5,
Text text,
ButtonWidget.PressAction pressAction,
ButtonWidget.class_5316 class_5316)
public void onPress()
onPress in class AbstractPressableButtonWidgetpublic void renderButton(MatrixStack matrices, int mouseX, int mouseY, float delta)
renderButton in class AbstractButtonWidgetpublic void renderToolTip(MatrixStack matrixStack, int int2, int int3)
renderToolTip in class AbstractButtonWidget