@Environment(value=CLIENT) public class LockButtonWidget extends ButtonWidget
| Modifier and Type | Class and Description |
|---|---|
(package private) static class |
LockButtonWidget.IconLocation |
ButtonWidget.PressAction| Modifier and Type | Field and Description |
|---|---|
private boolean |
locked |
onPressactive, alpha, height, hovered, nextNarration, visible, WIDGETS_LOCATION, width, x, yBACKGROUND_TEXTURE, GUI_ICONS_TEXTURE, STATS_ICON_TEXTURE| Constructor and Description |
|---|
LockButtonWidget(int x,
int y,
ButtonWidget.PressAction action) |
| Modifier and Type | Method and Description |
|---|---|
protected class_5250 |
getNarrationMessage() |
boolean |
isLocked() |
void |
renderButton(MatrixStack matrixStack,
int int2,
int int3,
float float2) |
void |
setLocked(boolean locked) |
onPresskeyPressed, onClickchangeFocus, clicked, getHeight, getMessage, 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, drawVerticalLine, fill, fillGradient, getZOffset, method_27534, method_27535, setZOffsetclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcharTyped, keyReleased, mouseMoved, mouseScrolledpublic LockButtonWidget(int x,
int y,
ButtonWidget.PressAction action)
protected class_5250 getNarrationMessage()
getNarrationMessage in class AbstractButtonWidgetpublic boolean isLocked()
public void setLocked(boolean locked)
public void renderButton(MatrixStack matrixStack, int int2, int int3, float float2)
renderButton in class AbstractButtonWidget