Class DamagePredicate
java.lang.Object
net.minecraft.advancements.critereon.DamagePredicate
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic DamagePredicate
private Boolean
private MinMaxBounds.Doubles
private EntityPredicate
private MinMaxBounds.Doubles
private DamageSourcePredicate
-
Constructor Summary
ConstructorDescriptionDamagePredicate(MinMaxBounds.Doubles p_24911_, MinMaxBounds.Doubles p_24912_, EntityPredicate p_24913_, Boolean p_24914_, DamageSourcePredicate p_24915_)
-
Method Summary
Modifier and TypeMethodDescriptionstatic DamagePredicate
fromJson(com.google.gson.JsonElement p_24924_)
boolean
matches(ServerPlayer p_24918_, DamageSource p_24919_, float p_24920_, float p_24921_, boolean p_24922_)
com.google.gson.JsonElement
-
Field Details
-
ANY
-
dealtDamage
-
takenDamage
-
sourceEntity
-
blocked
-
type
-
-
Constructor Details
-
DamagePredicate
public DamagePredicate() -
DamagePredicate
public DamagePredicate(MinMaxBounds.Doubles p_24911_, MinMaxBounds.Doubles p_24912_, EntityPredicate p_24913_, @Nullable Boolean p_24914_, DamageSourcePredicate p_24915_)
-
-
Method Details
-
matches
public boolean matches(ServerPlayer p_24918_, DamageSource p_24919_, float p_24920_, float p_24921_, boolean p_24922_) -
fromJson
-
serializeToJson
public com.google.gson.JsonElement serializeToJson()
-