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.
import crafttweaker . neoforge.api.tool . TriState;
Undocumented Interfaces Comparable <Enum >
TriState is an enum with 3 constants. They are accessible like so:
< constant : neoforge:tristate:default >
< constant : neoforge:tristate:false >
< constant : neoforge:tristate:true >
// TriState.isDefault as bool
< constant : neoforge:tristate:default > .isDefault
Return Type:
bool
// TriState.isFalse as bool
< constant : neoforge:tristate:default > .isFalse
Return Type:
bool
// TriState.isTrue as bool
< constant : neoforge:tristate:default > .isTrue
Return Type:
bool