DamageSourcePredicateBuilder

Link to damagesourcepredicatebuilder

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

Name: build

Return Type: DamageSourcePredicate

ZenScript
Copy
// DamageSourcePredicateBuilder.build() as DamageSourcePredicate

myDamageSourcePredicateBuilder.build();

Name: direct

Return Type: DamageSourcePredicateBuilder

ZenScript
Copy
DamageSourcePredicateBuilder.direct(entityPredicate as EntityPredicate) as DamageSourcePredicateBuilder
ParameterType
Parameter
entityPredicate
Type
EntityPredicate

Name: direct

Return Type: DamageSourcePredicateBuilder

ZenScript
Copy
DamageSourcePredicateBuilder.direct(entityPredicate as EntityPredicateBuilder) as DamageSourcePredicateBuilder
ParameterType
Parameter
entityPredicate
Type
EntityPredicateBuilder

Name: source

Return Type: DamageSourcePredicateBuilder

ZenScript
Copy
DamageSourcePredicateBuilder.source(entityPredicate as EntityPredicate) as DamageSourcePredicateBuilder
ParameterType
Parameter
entityPredicate
Type
EntityPredicate

Name: source

Return Type: DamageSourcePredicateBuilder

ZenScript
Copy
DamageSourcePredicateBuilder.source(entityPredicate as EntityPredicateBuilder) as DamageSourcePredicateBuilder
ParameterType
Parameter
entityPredicate
Type
EntityPredicateBuilder

Name: tag

Return Type: DamageSourcePredicateBuilder

ZenScript
Copy
DamageSourcePredicateBuilder.tag(tag as TagPredicate<DamageType>) as DamageSourcePredicateBuilder
ParameterType
Parameter
tag
Type
TagPredicate<DamageType>