DamageSourcePredicateBuilder

Link to damagesourcepredicatebuilder

Импорт класса

Link to импорт-класса

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: bypassesArmor

Return Type: DamageSourcePredicateBuilder

ZenScript
Copy
DamageSourcePredicateBuilder.bypassesArmor(bypassesArmor as bool?) as DamageSourcePredicateBuilder
ПараметрТипOptionalDefault Value
Параметр
bypassesArmor
Тип
bool?
Optional
true
Default Value
true

Link to bypassesInvulnerability

Name: bypassesInvulnerability

Return Type: DamageSourcePredicateBuilder

ZenScript
Copy
DamageSourcePredicateBuilder.bypassesInvulnerability(bypassesInvulnerability as bool?) as DamageSourcePredicateBuilder
ПараметрТипOptionalDefault Value
Параметр
bypassesInvulnerability
Тип
bool?
Optional
true
Default Value
true

Name: bypassesMagic

Return Type: DamageSourcePredicateBuilder

ZenScript
Copy
DamageSourcePredicateBuilder.bypassesMagic(bypassesMagic as bool?) as DamageSourcePredicateBuilder
ПараметрТипOptionalDefault Value
Параметр
bypassesMagic
Тип
bool?
Optional
true
Default Value
true

Name: direct

Return Type: DamageSourcePredicateBuilder

ZenScript
Copy
DamageSourcePredicateBuilder.direct(entityPredicate as EntityPredicate) as DamageSourcePredicateBuilder
ПараметрТип
Параметр
entityPredicate
Тип
EntityPredicate

Name: direct

Return Type: DamageSourcePredicateBuilder

ZenScript
Copy
DamageSourcePredicateBuilder.direct(entityPredicate as EntityPredicateBuilder) as DamageSourcePredicateBuilder
ПараметрТип
Параметр
entityPredicate
Тип
EntityPredicateBuilder

Name: isExplosion

Return Type: DamageSourcePredicateBuilder

ZenScript
Copy
DamageSourcePredicateBuilder.isExplosion(isExplosion as bool?) as DamageSourcePredicateBuilder
ПараметрТипOptionalDefault Value
Параметр
isExplosion
Тип
bool?
Optional
true
Default Value
true

Name: isFire

Return Type: DamageSourcePredicateBuilder

ZenScript
Copy
DamageSourcePredicateBuilder.isFire(isFire as bool?) as DamageSourcePredicateBuilder
ПараметрТипOptionalDefault Value
Параметр
isFire
Тип
bool?
Optional
true
Default Value
true

Name: isLightning

Return Type: DamageSourcePredicateBuilder

ZenScript
Copy
DamageSourcePredicateBuilder.isLightning(isLightning as bool?) as DamageSourcePredicateBuilder
ПараметрТипOptionalDefault Value
Параметр
isLightning
Тип
bool?
Optional
true
Default Value
true

Name: isMagic

Return Type: DamageSourcePredicateBuilder

ZenScript
Copy
DamageSourcePredicateBuilder.isMagic(isMagic as bool?) as DamageSourcePredicateBuilder
ПараметрТипOptionalDefault Value
Параметр
isMagic
Тип
bool?
Optional
true
Default Value
true

Name: isProjectile

Return Type: DamageSourcePredicateBuilder

ZenScript
Copy
DamageSourcePredicateBuilder.isProjectile(isProjectile as bool?) as DamageSourcePredicateBuilder
ПараметрТипOptionalDefault Value
Параметр
isProjectile
Тип
bool?
Optional
true
Default Value
true

Name: source

Return Type: DamageSourcePredicateBuilder

ZenScript
Copy
DamageSourcePredicateBuilder.source(entityPredicate as EntityPredicate) as DamageSourcePredicateBuilder
ПараметрТип
Параметр
entityPredicate
Тип
EntityPredicate

Name: source

Return Type: DamageSourcePredicateBuilder

ZenScript
Copy
DamageSourcePredicateBuilder.source(entityPredicate as EntityPredicateBuilder) as DamageSourcePredicateBuilder
ПараметрТип
Параметр
entityPredicate
Тип
EntityPredicateBuilder