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 Copyimport crafttweaker.api.predicate.builder.DamageSourcePredicateBuilder;
使用方式
Link to 使用方式
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
参数 | 类型 | 可选 | 默认值 |
---|---|---|---|
参数 bypassesArmor | 类型 bool? | 可选 true | 默认值 true |
Name: bypassesInvulnerability
Return Type: DamageSourcePredicateBuilder
ZenScript CopyDamageSourcePredicateBuilder.bypassesInvulnerability(bypassesInvulnerability as bool?) as DamageSourcePredicateBuilder
参数 | 类型 | 可选 | 默认值 |
---|---|---|---|
参数 bypassesInvulnerability | 类型 bool? | 可选 true | 默认值 true |
Name: bypassesMagic
Return Type: DamageSourcePredicateBuilder
ZenScript CopyDamageSourcePredicateBuilder.bypassesMagic(bypassesMagic as bool?) as DamageSourcePredicateBuilder
参数 | 类型 | 可选 | 默认值 |
---|---|---|---|
参数 bypassesMagic | 类型 bool? | 可选 true | 默认值 true |
Name: direct
Return Type: DamageSourcePredicateBuilder
ZenScript CopyDamageSourcePredicateBuilder.direct(entityPredicate as EntityPredicate) as DamageSourcePredicateBuilder
参数 | 类型 |
---|---|
参数 entityPredicate | 类型 EntityPredicate |
Name: direct
Return Type: DamageSourcePredicateBuilder
ZenScript CopyDamageSourcePredicateBuilder.direct(entityPredicate as EntityPredicateBuilder) as DamageSourcePredicateBuilder
参数 | 类型 |
---|---|
参数 entityPredicate | 类型 EntityPredicateBuilder |
Name: isExplosion
Return Type: DamageSourcePredicateBuilder
ZenScript CopyDamageSourcePredicateBuilder.isExplosion(isExplosion as bool?) as DamageSourcePredicateBuilder
参数 | 类型 | 可选 | 默认值 |
---|---|---|---|
参数 isExplosion | 类型 bool? | 可选 true | 默认值 true |
Name: isFire
Return Type: DamageSourcePredicateBuilder
ZenScript CopyDamageSourcePredicateBuilder.isFire(isFire as bool?) as DamageSourcePredicateBuilder
参数 | 类型 | 可选 | 默认值 |
---|---|---|---|
参数 isFire | 类型 bool? | 可选 true | 默认值 true |
Name: isLightning
Return Type: DamageSourcePredicateBuilder
ZenScript CopyDamageSourcePredicateBuilder.isLightning(isLightning as bool?) as DamageSourcePredicateBuilder
参数 | 类型 | 可选 | 默认值 |
---|---|---|---|
参数 isLightning | 类型 bool? | 可选 true | 默认值 true |
Name: isMagic
Return Type: DamageSourcePredicateBuilder
ZenScript CopyDamageSourcePredicateBuilder.isMagic(isMagic as bool?) as DamageSourcePredicateBuilder
参数 | 类型 | 可选 | 默认值 |
---|---|---|---|
参数 isMagic | 类型 bool? | 可选 true | 默认值 true |
Name: isProjectile
Return Type: DamageSourcePredicateBuilder
ZenScript CopyDamageSourcePredicateBuilder.isProjectile(isProjectile as bool?) as DamageSourcePredicateBuilder
参数 | 类型 | 可选 | 默认值 |
---|---|---|---|
参数 isProjectile | 类型 bool? | 可选 true | 默认值 true |
Name: source
Return Type: DamageSourcePredicateBuilder
ZenScript CopyDamageSourcePredicateBuilder.source(entityPredicate as EntityPredicate) as DamageSourcePredicateBuilder
参数 | 类型 |
---|---|
参数 entityPredicate | 类型 EntityPredicate |
Name: source
Return Type: DamageSourcePredicateBuilder
ZenScript CopyDamageSourcePredicateBuilder.source(entityPredicate as EntityPredicateBuilder) as DamageSourcePredicateBuilder
参数 | 类型 |
---|---|
参数 entityPredicate | 类型 EntityPredicateBuilder |