DataComponentPredicateBuilder

Link to datacomponentpredicatebuilder

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.builder.DataComponentPredicateBuilder;

Name: empty

Return Type: DataComponentPredicate

ZenScript
Copy
// DataComponentPredicateBuilder.empty() as DataComponentPredicate

DataComponentPredicateBuilder.empty();

Name: build

Return Type: DataComponentPredicate

ZenScript
Copy
// DataComponentPredicateBuilder.build() as DataComponentPredicate

myDataComponentPredicateBuilder.build();

Name: expect

Return Type: DataComponentPredicateBuilder

ZenScript
Copy
DataComponentPredicateBuilder.expect<T : Object>(type as DataComponentType, value as T) as DataComponentPredicateBuilder
ParameterType
Parameter
type
Type
DataComponentType
Parameter
value
Type
T
Parameter
T
Type
Object