Home Commands Examples Getting Started With Scripts Global Keywords 1.21 Migration Guide
NeoForgeBracketDumpers NeoForgeBracketHandlers NeoForgeBracketValidators

TriState

Importing the class

If you need to reference this type directly, like when casting an Array, or as a parameter, you will need to import it. Simply add the import at the top of the file.

script.zs
import crafttweaker.neoforge.api.tool.TriState;

Implements

Undocumented Interfaces

Comparable<Enum>

Enum Constants

TriState is an enum with 3 constants. They are accessible like so:

script.zs
// TriState.DEFAULT
<constant:neoforge:tristate:default>
// TriState.FALSE
<constant:neoforge:tristate:false>
// TriState.TRUE
<constant:neoforge:tristate:true>

Members

Getter
script.zs
// TriState.isDefault as bool
<constant:neoforge:tristate:default>.isDefault

Return Type: bool

Getter
script.zs
// TriState.isFalse as bool
<constant:neoforge:tristate:default>.isFalse

Return Type: bool

Getter
script.zs
// TriState.isTrue as bool
<constant:neoforge:tristate:default>.isTrue

Return Type: bool