StatePropertiesPredicateBuilder

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.

script.zs
import crafttweaker.api.predicate.builder.StatePropertiesPredicateBuilder;

Methods

Return Type: StatePropertiesPredicate

script.zs
// StatePropertiesPredicateBuilder.build() as StatePropertiesPredicate
myStatePropertiesPredicateBuilder.build();

Return Type: StatePropertiesPredicateBuilder

script.zs
StatePropertiesPredicateBuilder.property(name as string, value as boolean) as StatePropertiesPredicateBuilder
ParameterType
Parameter
name
Type
string
Parameter
value
Type
boolean

Return Type: StatePropertiesPredicateBuilder

script.zs
StatePropertiesPredicateBuilder.property(name as string, value as int) as StatePropertiesPredicateBuilder
ParameterType
Parameter
name
Type
string
Parameter
value
Type
int

Return Type: StatePropertiesPredicateBuilder

script.zs
StatePropertiesPredicateBuilder.property(name as string, value as IntMinMaxBoundsPredicate) as StatePropertiesPredicateBuilder
ParameterType
Parameter
name
Type
string
Parameter
value
Type
IntMinMaxBoundsPredicate

Return Type: StatePropertiesPredicateBuilder

script.zs
StatePropertiesPredicateBuilder.property(name as string, value as string) as StatePropertiesPredicateBuilder
ParameterType
Parameter
name
Type
string
Parameter
value
Type
string