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: bypassesArmor
Return Type: DamageSourcePredicateBuilder
ZenScript CopyDamageSourcePredicateBuilder.bypassesArmor(bypassesArmor as bool?) as DamageSourcePredicateBuilder
Parameter | Type | Description | Optional | DefaultValue |
---|---|---|---|---|
Parameter bypassesArmor | Type bool? | Description No Description Provided | Optional true | DefaultValue true |
Name: bypassesInvulnerability
Return Type: DamageSourcePredicateBuilder
ZenScript CopyDamageSourcePredicateBuilder.bypassesInvulnerability(bypassesInvulnerability as bool?) as DamageSourcePredicateBuilder
Parameter | Type | Description | Optional | DefaultValue |
---|---|---|---|---|
Parameter bypassesInvulnerability | Type bool? | Description No Description Provided | Optional true | DefaultValue true |
Name: bypassesMagic
Return Type: DamageSourcePredicateBuilder
ZenScript CopyDamageSourcePredicateBuilder.bypassesMagic(bypassesMagic as bool?) as DamageSourcePredicateBuilder
Parameter | Type | Description | Optional | DefaultValue |
---|---|---|---|---|
Parameter bypassesMagic | Type bool? | Description No Description Provided | Optional true | DefaultValue true |
Name: direct
Return Type: DamageSourcePredicateBuilder
ZenScript CopyDamageSourcePredicateBuilder.direct(entityPredicate as EntityPredicate) as DamageSourcePredicateBuilder
Parameter | Type | Description |
---|---|---|
Parameter entityPredicate | Type EntityPredicate | Description No Description Provided |
Name: direct
Return Type: DamageSourcePredicateBuilder
ZenScript CopyDamageSourcePredicateBuilder.direct(entityPredicate as EntityPredicateBuilder) as DamageSourcePredicateBuilder
Parameter | Type | Description |
---|---|---|
Parameter entityPredicate | Type EntityPredicateBuilder | Description No Description Provided |
Name: isExplosion
Return Type: DamageSourcePredicateBuilder
ZenScript CopyDamageSourcePredicateBuilder.isExplosion(isExplosion as bool?) as DamageSourcePredicateBuilder
Parameter | Type | Description | Optional | DefaultValue |
---|---|---|---|---|
Parameter isExplosion | Type bool? | Description No Description Provided | Optional true | DefaultValue true |
Name: isFire
Return Type: DamageSourcePredicateBuilder
ZenScript CopyDamageSourcePredicateBuilder.isFire(isFire as bool?) as DamageSourcePredicateBuilder
Parameter | Type | Description | Optional | DefaultValue |
---|---|---|---|---|
Parameter isFire | Type bool? | Description No Description Provided | Optional true | DefaultValue true |
Name: isLightning
Return Type: DamageSourcePredicateBuilder
ZenScript CopyDamageSourcePredicateBuilder.isLightning(isLightning as bool?) as DamageSourcePredicateBuilder
Parameter | Type | Description | Optional | DefaultValue |
---|---|---|---|---|
Parameter isLightning | Type bool? | Description No Description Provided | Optional true | DefaultValue true |
Name: isMagic
Return Type: DamageSourcePredicateBuilder
ZenScript CopyDamageSourcePredicateBuilder.isMagic(isMagic as bool?) as DamageSourcePredicateBuilder
Parameter | Type | Description | Optional | DefaultValue |
---|---|---|---|---|
Parameter isMagic | Type bool? | Description No Description Provided | Optional true | DefaultValue true |
Name: isProjectile
Return Type: DamageSourcePredicateBuilder
ZenScript CopyDamageSourcePredicateBuilder.isProjectile(isProjectile as bool?) as DamageSourcePredicateBuilder
Parameter | Type | Description | Optional | DefaultValue |
---|---|---|---|---|
Parameter isProjectile | Type bool? | Description No Description Provided | Optional true | DefaultValue true |
Name: source
Return Type: DamageSourcePredicateBuilder
ZenScript CopyDamageSourcePredicateBuilder.source(entityPredicate as EntityPredicate) as DamageSourcePredicateBuilder
Parameter | Type | Description |
---|---|---|
Parameter entityPredicate | Type EntityPredicate | Description No Description Provided |
Name: source
Return Type: DamageSourcePredicateBuilder
ZenScript CopyDamageSourcePredicateBuilder.source(entityPredicate as EntityPredicateBuilder) as DamageSourcePredicateBuilder
Parameter | Type | Description |
---|---|---|
Parameter entityPredicate | Type EntityPredicateBuilder | Description No Description Provided |