DataComponentPredicateBuilder

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

Members

build() as DataComponentPredicate
script.zs
// Builder.build() as DataComponentPredicate;
myBuilder.build();

Return Type: DataComponentPredicate

static empty() as DataComponentPredicate
script.zs
// Builder.empty() as DataComponentPredicate;
DataComponentPredicateBuilder.empty();

Return Type: DataComponentPredicate

expect(type as DataComponentType<?>, value as T) as Builder
script.zs
// Builder.expect<T>(type as DataComponentType<?>, value as T) as Builder;
myBuilder.expect<T>(myDataComponentType, myT);

Parameters:

value Type: T

Return Type: DataComponentPredicateBuilder