Class DamagePredicate
java.lang.Object
net.minecraft.advancements.criterion.DamagePredicate
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final DamagePredicate
private final Boolean
private final MinMaxBounds.FloatBound
private final EntityPredicate
private final MinMaxBounds.FloatBound
private final DamageSourcePredicate
-
Constructor Summary
ConstructorDescriptionDamagePredicate
(MinMaxBounds.FloatBound p_i49725_1_, MinMaxBounds.FloatBound p_i49725_2_, EntityPredicate p_i49725_3_, Boolean p_i49725_4_, DamageSourcePredicate p_i49725_5_) -
Method Summary
Modifier and TypeMethodDescriptionstatic DamagePredicate
fromJson
(com.google.gson.JsonElement p_192364_0_) boolean
matches
(ServerPlayerEntity p_192365_1_, DamageSource p_192365_2_, float p_192365_3_, float p_192365_4_, boolean p_192365_5_) com.google.gson.JsonElement
-
Field Details
-
ANY
-
dealtDamage
-
takenDamage
-
sourceEntity
-
blocked
-
type
-
-
Constructor Details
-
DamagePredicate
public DamagePredicate() -
DamagePredicate
public DamagePredicate(MinMaxBounds.FloatBound p_i49725_1_, MinMaxBounds.FloatBound p_i49725_2_, EntityPredicate p_i49725_3_, @Nullable Boolean p_i49725_4_, DamageSourcePredicate p_i49725_5_)
-
-
Method Details
-
matches
public boolean matches(ServerPlayerEntity p_192365_1_, DamageSource p_192365_2_, float p_192365_3_, float p_192365_4_, boolean p_192365_5_) -
fromJson
-
serializeToJson
public com.google.gson.JsonElement serializeToJson()
-