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 Copyimport crafttweaker.api.predicate.builder.DataComponentPredicateBuilder;
Static Methods
Link to static-methods
Name: empty
Return Type: DataComponentPredicate
ZenScript Copy// DataComponentPredicateBuilder.empty() as DataComponentPredicate
DataComponentPredicateBuilder.empty();
Methods
Link to methods
Name: build
Return Type: DataComponentPredicate
ZenScript Copy// DataComponentPredicateBuilder.build() as DataComponentPredicate
myDataComponentPredicateBuilder.build();
Name: expect
Return Type: DataComponentPredicateBuilder
ZenScript CopyDataComponentPredicateBuilder.expect<T : Object>(type as DataComponentType, value as T) as DataComponentPredicateBuilder
Parameter | Type |
---|---|
Parameter type | Type DataComponentType |
Parameter value | Type T |
Parameter T | Type Object |