Toggle::whenChanged()
Called when the player flips the toggle (not by setOn(boolean)).
Examples
Syntax
Java
.whenChanged(on)
Parameters
| Name | Data Type | Description |
|---|---|---|
| on | boolean | whether it is on now |
Return
void
Called when the player flips the toggle (not by setOn(boolean)).
.whenChanged(on)
| Name | Data Type | Description |
|---|---|---|
| on | boolean | whether it is on now |
void