Class EntityHurtPlayerTrigger.Instance
java.lang.Object
net.minecraft.advancements.criterion.CriterionInstance
net.minecraft.advancements.criterion.EntityHurtPlayerTrigger.Instance
- All Implemented Interfaces:
ICriterionInstance
- Enclosing class:
- EntityHurtPlayerTrigger
-
Field Summary
-
Constructor Summary
ConstructorDescriptionInstance
(EntityPredicate.AndPredicate p_i231572_1_, DamagePredicate p_i231572_2_) -
Method Summary
Modifier and TypeMethodDescriptionentityHurtPlayer
(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 Details
-
damage
-
-
Constructor Details
-
Instance
-
-
Method Details
-
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
- Specified by:
serializeToJson
in interfaceICriterionInstance
- Overrides:
serializeToJson
in classCriterionInstance
-