public class CheckboxElement<T extends IElementGUI> extends Element<T>
| Modifier and Type | Field and Description |
|---|---|
IBooleanProperty |
selected |
| Constructor and Description |
|---|
CheckboxElement(T gui,
float posX,
float posY,
boolean selected) |
CheckboxElement(T gui,
float posX,
float posY,
IBooleanProperty selected) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isSelected() |
boolean |
mouseClicked(float mouseX,
float mouseY,
int button) |
void |
render(float mouseX,
float mouseY,
float partialTicks) |
CheckboxElement<T> |
withSelection(boolean selected) |
dispose, drawOutline, drawOutline, drawRectangle, drawRectangle, drawTexturedRectangle, drawTexturedRectangle, endScissor, getChildren, getColorScheme, getHeight, getParent, getPosX, getPosY, getWidth, init, isEnabled, isSelected, isSelected, isVisible, keyPressed, mouseDragged, mouseReleased, mouseScrolled, renderChildren, setEnabled, setHeight, setPosX, setPosY, setVisible, setWidth, startScissor, update, withColorScheme, withParentpublic final IBooleanProperty selected
public CheckboxElement(T gui, float posX, float posY, boolean selected)
public CheckboxElement(T gui, float posX, float posY, IBooleanProperty selected)
public void render(float mouseX,
float mouseY,
float partialTicks)
render in class Element<T extends IElementGUI>public boolean mouseClicked(float mouseX,
float mouseY,
int button)
mouseClicked in class Element<T extends IElementGUI>public CheckboxElement<T> withSelection(boolean selected)
public boolean isSelected()