Class PlayerHurtEntityTrigger.TriggerInstance
java.lang.Object
net.minecraft.advancements.critereon.AbstractCriterionTriggerInstance
net.minecraft.advancements.critereon.PlayerHurtEntityTrigger.TriggerInstance
- All Implemented Interfaces:
CriterionTriggerInstance
- Enclosing class:
- PlayerHurtEntityTrigger
public static class PlayerHurtEntityTrigger.TriggerInstance
extends AbstractCriterionTriggerInstance
-
Field Summary
Modifier and TypeFieldDescriptionprivate final DamagePredicate
private final ContextAwarePredicate
-
Constructor Summary
ConstructorDescriptionTriggerInstance
(ContextAwarePredicate p_286866_, DamagePredicate p_286225_, ContextAwarePredicate p_286266_) -
Method Summary
Modifier and TypeMethodDescriptionboolean
matches
(ServerPlayer p_60143_, LootContext p_60144_, DamageSource p_60145_, float p_60146_, float p_60147_, boolean p_60148_) playerHurtEntity
(DamagePredicate p_156062_) playerHurtEntity
(DamagePredicate.Builder p_60150_) playerHurtEntity
(DamagePredicate.Builder p_156059_, EntityPredicate p_156060_) playerHurtEntity
(DamagePredicate p_156064_, EntityPredicate p_156065_) playerHurtEntity
(EntityPredicate p_156067_) com.google.gson.JsonObject
serializeToJson
(SerializationContext p_60152_) Methods inherited from class net.minecraft.advancements.critereon.AbstractCriterionTriggerInstance
getCriterion, getPlayerPredicate, toString
-
Field Details
-
damage
-
entity
-
-
Constructor Details
-
TriggerInstance
public TriggerInstance(ContextAwarePredicate p_286866_, DamagePredicate p_286225_, ContextAwarePredicate p_286266_)
-
-
Method Details
-
playerHurtEntity
-
playerHurtEntity
-
playerHurtEntity
public static PlayerHurtEntityTrigger.TriggerInstance playerHurtEntity(DamagePredicate.Builder p_60150_) -
playerHurtEntity
-
playerHurtEntity
public static PlayerHurtEntityTrigger.TriggerInstance playerHurtEntity(DamagePredicate p_156064_, EntityPredicate p_156065_) -
playerHurtEntity
public static PlayerHurtEntityTrigger.TriggerInstance playerHurtEntity(DamagePredicate.Builder p_156059_, EntityPredicate p_156060_) -
matches
public boolean matches(ServerPlayer p_60143_, LootContext p_60144_, DamageSource p_60145_, float p_60146_, float p_60147_, boolean p_60148_) -
serializeToJson
- Specified by:
serializeToJson
in interfaceCriterionTriggerInstance
- Overrides:
serializeToJson
in classAbstractCriterionTriggerInstance
-