public interface IThemeButton
| Modifier and Type | Interface and Description |
|---|---|
static interface |
IThemeButton.Action
The button action.
|
| Modifier and Type | Method and Description |
|---|---|
net.minecraft.client.gui.components.Button |
getButton()
Gets the root button.
|
java.lang.Boolean |
getToggled()
Gets true if toggled, false if not.
|
boolean |
isActive()
Gets if the button is active, if enabled and toggled
|
void |
setDrawButton(boolean drawButton)
Sets the button to draw or ot.
|
void |
setEnabled(boolean enabled)
Enables or disables the button.
|
void |
setLabels(java.lang.String labelOn,
java.lang.String labelOff)
Sets the on and off labels
|
void |
setStaysOn(boolean staysOn)
Sets so it cannot be toggled off.
|
void |
setToggled(java.lang.Boolean toggled)
Sets the toggled to value.
|
void |
setTooltip(java.lang.String... tooltip)
Sets tooltip.
|
void |
toggle()
Switch the toggle value.
|
void setToggled(java.lang.Boolean toggled)
toggled - to toggle.java.lang.Boolean getToggled()
boolean isActive()
void toggle()
void setLabels(java.lang.String labelOn,
java.lang.String labelOff)
labelOn - - The on label.labelOff - - The off label.net.minecraft.client.gui.components.Button getButton()
void setDrawButton(boolean drawButton)
drawButton - - To draw the button.void setStaysOn(boolean staysOn)
staysOn - - The stays on.void setEnabled(boolean enabled)
enabled - - To enable.void setTooltip(java.lang.String... tooltip)
tooltip - the tooltip