public class GuiCheckBox extends GuiButton
buttonTextures, displayString, enabled, height, hovered, id, packedFGColour, visible, width, xPosition, yPosition
icons, optionsBackground, statIcons, 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, setWidth
drawCenteredString, drawGradientRect, drawHorizontalLine, drawModalRectWithCustomSizedTexture, drawRect, drawScaledCustomSizeModalRect, drawString, drawTexturedModalRect, drawTexturedModalRect, drawTexturedModalRect, drawVerticalLine
public 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 GuiButton
public boolean mousePressed(Minecraft mc, int mouseX, int mouseY)
mousePressed
in class GuiButton
public boolean isChecked()
public void setIsChecked(boolean isChecked)