Class DamagePredicate.Builder
- java.lang.Object
-
- net.minecraft.advancements.criterion.DamagePredicate.Builder
-
- Enclosing class:
- DamagePredicate
public static class DamagePredicate.Builder extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.Boolean
blocked
private MinMaxBounds.FloatBound
dealtDamage
private EntityPredicate
sourceEntity
private MinMaxBounds.FloatBound
takenDamage
private DamageSourcePredicate
type
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description DamagePredicate.Builder
blocked(java.lang.Boolean p_203968_1_)
DamagePredicate
build()
static DamagePredicate.Builder
damageInstance()
DamagePredicate.Builder
type(DamageSourcePredicate.Builder p_203969_1_)
-
-
-
Field Detail
-
dealtDamage
private MinMaxBounds.FloatBound dealtDamage
-
takenDamage
private MinMaxBounds.FloatBound takenDamage
-
sourceEntity
private EntityPredicate sourceEntity
-
blocked
private java.lang.Boolean blocked
-
type
private DamageSourcePredicate type
-
-
Method Detail
-
damageInstance
public static DamagePredicate.Builder damageInstance()
-
blocked
public DamagePredicate.Builder blocked(java.lang.Boolean p_203968_1_)
-
type
public DamagePredicate.Builder type(DamageSourcePredicate.Builder p_203969_1_)
-
build
public DamagePredicate build()
-
-