@Environment(value=CLIENT) public class CheckboxWidget extends AbstractPressableButtonWidget
| Modifier and Type | Field and Description |
|---|---|
private boolean |
checked |
private boolean |
field_24253 |
private static Identifier |
TEXTURE |
active, alpha, height, hovered, nextNarration, visible, WIDGETS_LOCATION, width, x, yGUI_ICONS_TEXTURE, OPTIONS_BACKGROUND_TEXTURE, STATS_ICON_TEXTURE| Constructor and Description |
|---|
CheckboxWidget(int x,
int y,
int width,
int height,
Text text,
boolean checked) |
CheckboxWidget(int int2,
int int3,
int int4,
int int5,
Text text,
boolean bool,
boolean bool2) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isChecked() |
void |
onPress() |
void |
renderButton(MatrixStack matrices,
int mouseX,
int mouseY,
float delta) |
keyPressed, 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, 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 static final Identifier TEXTURE
private boolean checked
private final boolean field_24253
public CheckboxWidget(int x,
int y,
int width,
int height,
Text text,
boolean checked)
public CheckboxWidget(int int2,
int int3,
int int4,
int int5,
Text text,
boolean bool,
boolean bool2)
public void onPress()
onPress in class AbstractPressableButtonWidgetpublic boolean isChecked()
public void renderButton(MatrixStack matrices, int mouseX, int mouseY, float delta)
renderButton in class AbstractButtonWidget