Class EntityHurtPlayerTrigger.TriggerInstance
java.lang.Object
net.minecraft.advancements.critereon.AbstractCriterionTriggerInstance
net.minecraft.advancements.critereon.EntityHurtPlayerTrigger.TriggerInstance
- All Implemented Interfaces:
CriterionTriggerInstance
- Enclosing class:
- EntityHurtPlayerTrigger
public static class EntityHurtPlayerTrigger.TriggerInstance
extends AbstractCriterionTriggerInstance
-
Field Summary
-
Constructor Summary
ConstructorDescriptionTriggerInstance(EntityPredicate.Composite p_35198_, DamagePredicate p_35199_)
-
Method Summary
Modifier and TypeMethodDescriptionentityHurtPlayer(DamagePredicate p_150188_)
entityHurtPlayer(DamagePredicate.Builder p_35207_)
boolean
matches(ServerPlayer p_35201_, DamageSource p_35202_, float p_35203_, float p_35204_, boolean p_35205_)
com.google.gson.JsonObject
serializeToJson(SerializationContext p_35209_)
Methods inherited from class net.minecraft.advancements.critereon.AbstractCriterionTriggerInstance
getCriterion, getPlayerPredicate, toString
-
Field Details
-
damage
-
-
Constructor Details
-
TriggerInstance
-
-
Method Details
-
entityHurtPlayer
-
entityHurtPlayer
-
entityHurtPlayer
public static EntityHurtPlayerTrigger.TriggerInstance entityHurtPlayer(DamagePredicate.Builder p_35207_) -
matches
public boolean matches(ServerPlayer p_35201_, DamageSource p_35202_, float p_35203_, float p_35204_, boolean p_35205_) -
serializeToJson
- Specified by:
serializeToJson
in interfaceCriterionTriggerInstance
- Overrides:
serializeToJson
in classAbstractCriterionTriggerInstance
-