@Environment(value=CLIENT) public class OptionButtonWidget extends ButtonWidget implements OrderableTooltip
ButtonWidget.PressAction, ButtonWidget.TooltipSupplier| Modifier and Type | Field and Description |
|---|---|
private Option |
option |
EMPTY, onPress, tooltipSupplieractive, alpha, height, hovered, nextNarration, visible, WIDGETS_LOCATION, width, x, yGUI_ICONS_TEXTURE, OPTIONS_BACKGROUND_TEXTURE, STATS_ICON_TEXTURE| Constructor and Description |
|---|
OptionButtonWidget(int x,
int y,
int width,
int height,
Option option,
Text text,
ButtonWidget.PressAction pressAction) |
| Modifier and Type | Method and Description |
|---|---|
Option |
getOption() |
Optional<List<OrderedText>> |
getOrderedTooltip() |
onPress, renderButton, 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 Option option
public OptionButtonWidget(int x,
int y,
int width,
int height,
Option option,
Text text,
ButtonWidget.PressAction pressAction)
public Option getOption()
public Optional<List<OrderedText>> getOrderedTooltip()
getOrderedTooltip in interface OrderableTooltip