DamageSourcePredicateBuilder

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.DamageSourcePredicateBuilder;

Members

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

Return Type: DamageSourcePredicate

direct(entityPredicate as Builder) as Builder
script.zs
// Builder.direct(entityPredicate as Builder) as Builder;
myBuilder.direct(myBuilder);

Parameters:

Return Type: DamageSourcePredicateBuilder

source(entityPredicate as Builder) as Builder
script.zs
// Builder.source(entityPredicate as Builder) as Builder;
myBuilder.source(myBuilder);

Parameters:

Return Type: DamageSourcePredicateBuilder

tag(tag as TagPredicate<DamageType>) as Builder
script.zs
// Builder.tag(tag as TagPredicate<DamageType>) as Builder;
myBuilder.tag(myTagPredicate);

Parameters:

Return Type: DamageSourcePredicateBuilder