Represents a value that can assume three values, instead of a simple boolean that can only assume two values.

Importing the class

Link to importing-the-class

It might be required for you to import the package if you encounter any issues (like casting an Array), so better be safe than sorry and add the import at the very top of the file.

ZenScript
Copy
import crafttweaker.api.predicate.TriState;

Extending Enum<TriState>

Link to extending-enumtristate

TriState extends Enum<TriState>. That means all methods available in Enum<TriState> are also available in TriState

Static Properties

Link to static-properties

NombreTypeHas GetterHas SetterDescription
Nombre
FALSE
Type
TriState
Has Getter
true
Has Setter
false
Description
The false value of the TriState. <br /> <br /> It can be considered the same as a boolean's 'false' value.
Nombre
TRUE
Type
TriState
Has Getter
true
Has Setter
false
Description
The true value of the TriState. <br /> <br /> It can be considered the same as a boolean's 'true' value.
Nombre
UNSET
Type
TriState
Has Getter
true
Has Setter
false
Description
The unset value of the TriState. <br /> <br /> It represents the lack of a state or a decision that hasn't been made yet.