Class DamageSourcePredicate.Builder
- java.lang.Object
-
- net.minecraft.advancements.criterion.DamageSourcePredicate.Builder
-
- Enclosing class:
- DamageSourcePredicate
public static class DamageSourcePredicate.Builder extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.Boolean
bypassesArmor
private java.lang.Boolean
bypassesInvulnerability
private java.lang.Boolean
bypassesMagic
private EntityPredicate
directEntity
private java.lang.Boolean
isExplosion
private java.lang.Boolean
isFire
private java.lang.Boolean
isLightning
private java.lang.Boolean
isMagic
private java.lang.Boolean
isProjectile
private EntityPredicate
sourceEntity
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description DamageSourcePredicate
build()
static DamageSourcePredicate.Builder
damageType()
DamageSourcePredicate.Builder
direct(EntityPredicate.Builder p_203980_1_)
DamageSourcePredicate.Builder
isLightning(java.lang.Boolean p_217950_1_)
DamageSourcePredicate.Builder
isProjectile(java.lang.Boolean p_203978_1_)
-
-
-
Field Detail
-
isProjectile
private java.lang.Boolean isProjectile
-
isExplosion
private java.lang.Boolean isExplosion
-
bypassesArmor
private java.lang.Boolean bypassesArmor
-
bypassesInvulnerability
private java.lang.Boolean bypassesInvulnerability
-
bypassesMagic
private java.lang.Boolean bypassesMagic
-
isFire
private java.lang.Boolean isFire
-
isMagic
private java.lang.Boolean isMagic
-
isLightning
private java.lang.Boolean isLightning
-
directEntity
private EntityPredicate directEntity
-
sourceEntity
private EntityPredicate sourceEntity
-
-
Method Detail
-
damageType
public static DamageSourcePredicate.Builder damageType()
-
isProjectile
public DamageSourcePredicate.Builder isProjectile(java.lang.Boolean p_203978_1_)
-
isLightning
public DamageSourcePredicate.Builder isLightning(java.lang.Boolean p_217950_1_)
-
direct
public DamageSourcePredicate.Builder direct(EntityPredicate.Builder p_203980_1_)
-
build
public DamageSourcePredicate build()
-
-