@Environment(value=CLIENT) public class CheckboxWidget extends AbstractPressableButtonWidget
| Modifier and Type | Field and Description |
|---|---|
(package private) boolean |
checked |
private static Identifier |
TEXTURE |
active, alpha, height, hovered, nextNarration, visible, WIDGETS_LOCATION, width, x, yBACKGROUND_TEXTURE, GUI_ICONS_TEXTURE, STATS_ICON_TEXTURE| Constructor and Description |
|---|
CheckboxWidget(int x,
int y,
int width,
int height,
String message,
boolean checked) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isChecked() |
void |
onPress() |
void |
renderButton(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, drawHorizontalLine, drawSprite, drawString, drawTexture, drawTexture, drawTexture, drawTexture, drawTexturedQuad, drawVerticalLine, fill, fill, fillGradient, getZOffset, setZOffsetclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcharTyped, keyReleased, mouseMoved, mouseScrolledprivate static final Identifier TEXTURE
boolean checked
public CheckboxWidget(int x,
int y,
int width,
int height,
String message,
boolean checked)
public void onPress()
onPress in class AbstractPressableButtonWidgetpublic boolean isChecked()
public void renderButton(int mouseX,
int mouseY,
float delta)
renderButton in class AbstractButtonWidget