Methods
opposite()
- Description:
Return the opposite of this state (ON↔OFF; UNKNOWN stays UNKNOWN).
- Source:
Enum-like state constants used by terrain that has an on/off condition: Door (open/closed), Gate (open/closed), Switch (on/off), etc.
Mirrors State.java exactly. Serialized to lowercase strings "on"/"off"/"unknown".
Return the opposite of this state (ON↔OFF; UNKNOWN stays UNKNOWN).