Class DamagePredicate
- java.lang.Object
-
- net.minecraft.advancements.criterion.DamagePredicate
-
public class DamagePredicate extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DamagePredicate.Builder
-
Field Summary
Fields Modifier and Type Field Description static DamagePredicate
ANY
private java.lang.Boolean
blocked
private MinMaxBounds.FloatBound
dealtDamage
private EntityPredicate
sourceEntity
private MinMaxBounds.FloatBound
takenDamage
private DamageSourcePredicate
type
-
Constructor Summary
Constructors Constructor Description DamagePredicate()
DamagePredicate(MinMaxBounds.FloatBound p_i49725_1_, MinMaxBounds.FloatBound p_i49725_2_, EntityPredicate p_i49725_3_, java.lang.Boolean p_i49725_4_, DamageSourcePredicate p_i49725_5_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static 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
serializeToJson()
-
-
-
Field Detail
-
ANY
public static final DamagePredicate ANY
-
dealtDamage
private final MinMaxBounds.FloatBound dealtDamage
-
takenDamage
private final MinMaxBounds.FloatBound takenDamage
-
sourceEntity
private final EntityPredicate sourceEntity
-
blocked
private final java.lang.Boolean blocked
-
type
private final DamageSourcePredicate type
-
-
Constructor Detail
-
DamagePredicate
public DamagePredicate()
-
DamagePredicate
public DamagePredicate(MinMaxBounds.FloatBound p_i49725_1_, MinMaxBounds.FloatBound p_i49725_2_, EntityPredicate p_i49725_3_, @Nullable java.lang.Boolean p_i49725_4_, DamageSourcePredicate p_i49725_5_)
-
-
Method Detail
-
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
public static DamagePredicate fromJson(@Nullable com.google.gson.JsonElement p_192364_0_)
-
serializeToJson
public com.google.gson.JsonElement serializeToJson()
-
-