@Environment(value=CLIENT) public class LockButtonWidget extends ButtonWidget
| Modifier and Type | Class and Description |
|---|---|
(package private) static class |
LockButtonWidget.IconLocation |
ButtonWidget.PressAction, ButtonWidget.TooltipSupplier| Modifier and Type | Field and Description |
|---|---|
private boolean |
locked |
EMPTY, onPress, tooltipSupplieractive, alpha, height, hovered, nextNarration, visible, WIDGETS_LOCATION, width, x, yGUI_ICONS_TEXTURE, OPTIONS_BACKGROUND_TEXTURE, STATS_ICON_TEXTURE| Constructor and Description |
|---|
LockButtonWidget(int x,
int y,
ButtonWidget.PressAction action) |
| Modifier and Type | Method and Description |
|---|---|
protected MutableText |
getNarrationMessage() |
boolean |
isLocked() |
void |
renderButton(MatrixStack matrices,
int mouseX,
int mouseY,
float delta) |
void |
setLocked(boolean locked) |
onPress, renderToolTipkeyPressed, onClickchangeFocus, clicked, getHeight, getMessage, 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 LockButtonWidget(int x,
int y,
ButtonWidget.PressAction action)
protected MutableText getNarrationMessage()
getNarrationMessage in class AbstractButtonWidgetpublic boolean isLocked()
public void setLocked(boolean locked)
public void renderButton(MatrixStack matrices, int mouseX, int mouseY, float delta)
renderButton in class ButtonWidget