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

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

名称类型可获得可设置描述
名称
FALSE
类型
TriState
可获得
true
可设置
false
描述
The false value of the TriState. <br /> <br /> It can be considered the same as a boolean's 'false' value.
名称
TRUE
类型
TriState
可获得
true
可设置
false
描述
The true value of the TriState. <br /> <br /> It can be considered the same as a boolean's 'true' value.
名称
UNSET
类型
TriState
可获得
true
可设置
false
描述
The unset value of the TriState. <br /> <br /> It represents the lack of a state or a decision that hasn't been made yet.