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 Copyimport crafttweaker.api.predicate.builder.DamageSourcePredicateBuilder;
Methods
Link to methods
Name: build
Return Type: DamageSourcePredicate
ZenScript Copy// DamageSourcePredicateBuilder.build() as DamageSourcePredicate
myDamageSourcePredicateBuilder.build();
Name: direct
Return Type: DamageSourcePredicateBuilder
ZenScript CopyDamageSourcePredicateBuilder.direct(entityPredicate as EntityPredicate) as DamageSourcePredicateBuilder
Parameter | Type |
---|---|
Parameter entityPredicate | Type EntityPredicate |
Name: direct
Return Type: DamageSourcePredicateBuilder
ZenScript CopyDamageSourcePredicateBuilder.direct(entityPredicate as EntityPredicateBuilder) as DamageSourcePredicateBuilder
Parameter | Type |
---|---|
Parameter entityPredicate | Type EntityPredicateBuilder |
Name: source
Return Type: DamageSourcePredicateBuilder
ZenScript CopyDamageSourcePredicateBuilder.source(entityPredicate as EntityPredicate) as DamageSourcePredicateBuilder
Parameter | Type |
---|---|
Parameter entityPredicate | Type EntityPredicate |
Name: source
Return Type: DamageSourcePredicateBuilder
ZenScript CopyDamageSourcePredicateBuilder.source(entityPredicate as EntityPredicateBuilder) as DamageSourcePredicateBuilder
Parameter | Type |
---|---|
Parameter entityPredicate | Type EntityPredicateBuilder |
Name: tag
Return Type: DamageSourcePredicateBuilder
ZenScript CopyDamageSourcePredicateBuilder.tag(tag as TagPredicate<DamageType>) as DamageSourcePredicateBuilder
Parameter | Type |
---|---|
Parameter tag | Type TagPredicate<DamageType> |