DataComponentPredicate

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.api.predicate.DataComponentPredicate;

Implements

Undocumented Interfaces

Predicate<DataComponentMap>

Members

static allOf(map as DataComponentMap) as DataComponentPredicate
script.zs
// DataComponentPredicate.allOf(map as DataComponentMap) as DataComponentPredicate;
DataComponentPredicate.allOf(myDataComponentMap);

Parameters:

Return Type: DataComponentPredicate

static create() as Builder
script.zs
// DataComponentPredicate.create() as Builder;
DataComponentPredicate.create();

Return Type: DataComponentPredicateBuilder