public class CheckboxButton extends AbstractButton
| Modifier and Type | Field and Description |
|---|---|
(package private) boolean |
checked |
private static ResourceLocation |
TEXTURE |
active, alpha, height, isHovered, nextNarration, packedFGColor, UNSET_FG_COLOR, visible, WIDGETS_LOCATION, width, x, yBACKGROUND_LOCATION, GUI_ICONS_LOCATION, STATS_ICON_LOCATION| Constructor and Description |
|---|
CheckboxButton(int xIn,
int yIn,
int widthIn,
int heightIn,
java.lang.String msg,
boolean isChecked) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isChecked() |
void |
onPress() |
void |
renderButton(int p_renderButton_1_,
int p_renderButton_2_,
float p_renderButton_3_) |
keyPressed, onClickchangeFocus, clearFGColor, clicked, getFGColor, getHeight, getMessage, getNarrationMessage, getWidth, getYImage, isFocused, isHovered, isMouseOver, isValidClickButton, mouseClicked, mouseDragged, mouseReleased, narrate, onDrag, onFocusedChanged, onRelease, playDownSound, queueNarration, render, renderBg, renderToolTip, setAlpha, setFGColor, setFocused, setHeight, setMessage, setWidthblit, blit, blit, blit, blit, drawCenteredString, drawRightAlignedString, drawString, fill, fill, fillGradient, getBlitOffset, hLine, innerBlit, setBlitOffset, vLineclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcharTyped, keyReleased, mouseMoved, mouseScrolledprivate static final ResourceLocation TEXTURE
boolean checked
public CheckboxButton(int xIn,
int yIn,
int widthIn,
int heightIn,
java.lang.String msg,
boolean isChecked)
public void onPress()
onPress in class AbstractButtonpublic boolean isChecked()
public void renderButton(int p_renderButton_1_,
int p_renderButton_2_,
float p_renderButton_3_)
renderButton in class Widget