DamageSourcePredicateBuilder

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.

script.zs
import crafttweaker.api.predicate.builder.DamageSourcePredicateBuilder;

Methods

Return Type: DamageSourcePredicate

script.zs
// DamageSourcePredicateBuilder.build() as DamageSourcePredicate
myDamageSourcePredicateBuilder.build();

Return Type: DamageSourcePredicateBuilder

script.zs
DamageSourcePredicateBuilder.bypassesArmor(bypassesArmor as bool?) as DamageSourcePredicateBuilder
ParameterTypeOptionalDefault Value
Parameter
bypassesArmor
Type
bool?
Optional
true
Default Value
true

Return Type: DamageSourcePredicateBuilder

script.zs
DamageSourcePredicateBuilder.bypassesInvulnerability(bypassesInvulnerability as bool?) as DamageSourcePredicateBuilder
ParameterTypeOptionalDefault Value
Parameter
bypassesInvulnerability
Type
bool?
Optional
true
Default Value
true

Return Type: DamageSourcePredicateBuilder

script.zs
DamageSourcePredicateBuilder.bypassesMagic(bypassesMagic as bool?) as DamageSourcePredicateBuilder
ParameterTypeOptionalDefault Value
Parameter
bypassesMagic
Type
bool?
Optional
true
Default Value
true

Return Type: DamageSourcePredicateBuilder

script.zs
DamageSourcePredicateBuilder.direct(entityPredicate as EntityPredicate) as DamageSourcePredicateBuilder
ParameterType
Parameter
entityPredicate
Type
EntityPredicate

Return Type: DamageSourcePredicateBuilder

script.zs
DamageSourcePredicateBuilder.direct(entityPredicate as EntityPredicateBuilder) as DamageSourcePredicateBuilder
ParameterType
Parameter
entityPredicate
Type
EntityPredicateBuilder

Return Type: DamageSourcePredicateBuilder

script.zs
DamageSourcePredicateBuilder.isExplosion(isExplosion as bool?) as DamageSourcePredicateBuilder
ParameterTypeOptionalDefault Value
Parameter
isExplosion
Type
bool?
Optional
true
Default Value
true

Return Type: DamageSourcePredicateBuilder

script.zs
DamageSourcePredicateBuilder.isFire(isFire as bool?) as DamageSourcePredicateBuilder
ParameterTypeOptionalDefault Value
Parameter
isFire
Type
bool?
Optional
true
Default Value
true

Return Type: DamageSourcePredicateBuilder

script.zs
DamageSourcePredicateBuilder.isLightning(isLightning as bool?) as DamageSourcePredicateBuilder
ParameterTypeOptionalDefault Value
Parameter
isLightning
Type
bool?
Optional
true
Default Value
true

Return Type: DamageSourcePredicateBuilder

script.zs
DamageSourcePredicateBuilder.isMagic(isMagic as bool?) as DamageSourcePredicateBuilder
ParameterTypeOptionalDefault Value
Parameter
isMagic
Type
bool?
Optional
true
Default Value
true

Return Type: DamageSourcePredicateBuilder

script.zs
DamageSourcePredicateBuilder.isProjectile(isProjectile as bool?) as DamageSourcePredicateBuilder
ParameterTypeOptionalDefault Value
Parameter
isProjectile
Type
bool?
Optional
true
Default Value
true

Return Type: DamageSourcePredicateBuilder

script.zs
DamageSourcePredicateBuilder.source(entityPredicate as EntityPredicate) as DamageSourcePredicateBuilder
ParameterType
Parameter
entityPredicate
Type
EntityPredicate

Return Type: DamageSourcePredicateBuilder

script.zs
DamageSourcePredicateBuilder.source(entityPredicate as EntityPredicateBuilder) as DamageSourcePredicateBuilder
ParameterType
Parameter
entityPredicate
Type
EntityPredicateBuilder