Class EntityHurtPlayerTrigger.Instance
- java.lang.Object
-
- net.minecraft.advancements.criterion.CriterionInstance
-
- net.minecraft.advancements.criterion.EntityHurtPlayerTrigger.Instance
-
- All Implemented Interfaces:
ICriterionInstance
- Enclosing class:
- EntityHurtPlayerTrigger
public static class EntityHurtPlayerTrigger.Instance extends CriterionInstance
-
-
Field Summary
Fields Modifier and Type Field Description private DamagePredicate
damage
-
Constructor Summary
Constructors Constructor Description Instance(EntityPredicate.AndPredicate p_i231572_1_, DamagePredicate p_i231572_2_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static EntityHurtPlayerTrigger.Instance
entityHurtPlayer(DamagePredicate.Builder p_203921_0_)
boolean
matches(ServerPlayerEntity p_192263_1_, DamageSource p_192263_2_, float p_192263_3_, float p_192263_4_, boolean p_192263_5_)
com.google.gson.JsonObject
serializeToJson(ConditionArraySerializer p_230240_1_)
-
Methods inherited from class net.minecraft.advancements.criterion.CriterionInstance
getCriterion, getPlayerPredicate, toString
-
-
-
-
Field Detail
-
damage
private final DamagePredicate damage
-
-
Constructor Detail
-
Instance
public Instance(EntityPredicate.AndPredicate p_i231572_1_, DamagePredicate p_i231572_2_)
-
-
Method Detail
-
entityHurtPlayer
public static EntityHurtPlayerTrigger.Instance entityHurtPlayer(DamagePredicate.Builder p_203921_0_)
-
matches
public boolean matches(ServerPlayerEntity p_192263_1_, DamageSource p_192263_2_, float p_192263_3_, float p_192263_4_, boolean p_192263_5_)
-
serializeToJson
public com.google.gson.JsonObject serializeToJson(ConditionArraySerializer p_230240_1_)
- Specified by:
serializeToJson
in interfaceICriterionInstance
- Overrides:
serializeToJson
in classCriterionInstance
-
-