endstone::Toggle
Represents a toggle button with a label.
Functions:
| Name | Description |
|---|---|
Toggle | |
Toggle | |
getDefaultValue | Gets the default value of the toggle. |
getLabel | Gets the label of the toggle. |
setDefaultValue | Sets the default value of the toggle. |
setLabel | Sets the label of the toggle. |
Toggle
Toggle() = defaultToggle(Message label, bool default_value = false) getDefaultValue
bool getDefaultValue() constGets the default value of the toggle.
Returns:
The default value of the toggle.
getLabel
Message getLabel() constGets the label of the toggle.
Returns:
The label of the toggle.
setDefaultValue
Toggle &setDefaultValue(bool value)Sets the default value of the toggle.
Parameters:
valueThe new default value for the toggle.
Returns:
A reference to the current toggle.
setLabel
Toggle &setLabel(Message label)Sets the label of the toggle.
Parameters:
labelThe new label for the toggle.
Returns:
A reference to the current toggle.
Last updated on