Class EntityHurtPlayerTrigger
java.lang.Object
net.minecraft.advancements.critereon.SimpleCriterionTrigger<EntityHurtPlayerTrigger.TriggerInstance>
net.minecraft.advancements.critereon.EntityHurtPlayerTrigger
- All Implemented Interfaces:
CriterionTrigger<EntityHurtPlayerTrigger.TriggerInstance>
public class EntityHurtPlayerTrigger
extends SimpleCriterionTrigger<EntityHurtPlayerTrigger.TriggerInstance>
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.advancements.critereon.SimpleCriterionTrigger
SimpleCriterionTrigger.SimpleInstance
Nested classes/interfaces inherited from interface net.minecraft.advancements.CriterionTrigger
CriterionTrigger.Listener<T extends CriterionTriggerInstance>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateInstance
(com.google.gson.JsonObject p_286430_, Optional<ContextAwarePredicate> p_298313_, DeserializationContext p_286648_) void
trigger
(ServerPlayer p_35175_, DamageSource p_35176_, float p_35177_, float p_35178_, boolean p_35179_) Methods inherited from class net.minecraft.advancements.critereon.SimpleCriterionTrigger
addPlayerListener, createInstance, removePlayerListener, removePlayerListeners, trigger
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.advancements.CriterionTrigger
createCriterion
-
Constructor Details
-
EntityHurtPlayerTrigger
public EntityHurtPlayerTrigger()
-
-
Method Details
-
createInstance
public EntityHurtPlayerTrigger.TriggerInstance createInstance(com.google.gson.JsonObject p_286430_, Optional<ContextAwarePredicate> p_298313_, DeserializationContext p_286648_) - Specified by:
createInstance
in classSimpleCriterionTrigger<EntityHurtPlayerTrigger.TriggerInstance>
-
trigger
public void trigger(ServerPlayer p_35175_, DamageSource p_35176_, float p_35177_, float p_35178_, boolean p_35179_)
-