public class GuiCheckBox extends GuiButton
BUTTON_TEXTURES, displayString, enabled, height, hovered, id, packedFGColour, visible, width, xPosition, yPositionICONS, OPTIONS_BACKGROUND, STAT_ICONS, zLevel| Constructor and Description |
|---|
GuiCheckBox(int id,
int xPos,
int yPos,
java.lang.String displayString,
boolean isChecked) |
| Modifier and Type | Method and Description |
|---|---|
void |
drawButton(Minecraft mc,
int mouseX,
int mouseY)
Draws this button to the screen.
|
boolean |
isChecked() |
boolean |
mousePressed(Minecraft mc,
int mouseX,
int mouseY)
Returns true if the mouse has been pressed on this control.
|
void |
setIsChecked(boolean isChecked) |
drawButtonForegroundLayer, getButtonWidth, getHoverState, isMouseOver, mouseDragged, mouseReleased, playPressSound, setWidthdrawCenteredString, drawGradientRect, drawHorizontalLine, drawModalRectWithCustomSizedTexture, drawRect, drawScaledCustomSizeModalRect, drawString, drawTexturedModalRect, drawTexturedModalRect, drawTexturedModalRect, drawVerticalLinepublic GuiCheckBox(int id,
int xPos,
int yPos,
java.lang.String displayString,
boolean isChecked)
public void drawButton(Minecraft mc, int mouseX, int mouseY)
drawButton in class GuiButtonpublic boolean mousePressed(Minecraft mc, int mouseX, int mouseY)
mousePressed in class GuiButtonpublic boolean isChecked()
public void setIsChecked(boolean isChecked)