Class PlayerHurtEntityTrigger
java.lang.Object
net.minecraft.advancements.critereon.SimpleCriterionTrigger<PlayerHurtEntityTrigger.TriggerInstance>
net.minecraft.advancements.critereon.PlayerHurtEntityTrigger
- All Implemented Interfaces:
CriterionTrigger<PlayerHurtEntityTrigger.TriggerInstance>
public class PlayerHurtEntityTrigger
extends SimpleCriterionTrigger<PlayerHurtEntityTrigger.TriggerInstance>
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.advancements.CriterionTrigger
CriterionTrigger.Listener<T extends CriterionTriggerInstance>
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateInstance
(com.google.gson.JsonObject p_60128_, EntityPredicate.Composite p_60129_, DeserializationContext p_60130_) getId()
void
trigger
(ServerPlayer p_60113_, Entity p_60114_, DamageSource p_60115_, float p_60116_, float p_60117_, boolean p_60118_) Methods inherited from class net.minecraft.advancements.critereon.SimpleCriterionTrigger
addPlayerListener, createInstance, removePlayerListener, removePlayerListeners, trigger
-
Field Details
-
ID
-
-
Constructor Details
-
PlayerHurtEntityTrigger
public PlayerHurtEntityTrigger()
-
-
Method Details
-
getId
-
createInstance
public PlayerHurtEntityTrigger.TriggerInstance createInstance(com.google.gson.JsonObject p_60128_, EntityPredicate.Composite p_60129_, DeserializationContext p_60130_) - Specified by:
createInstance
in classSimpleCriterionTrigger<PlayerHurtEntityTrigger.TriggerInstance>
-
trigger
public void trigger(ServerPlayer p_60113_, Entity p_60114_, DamageSource p_60115_, float p_60116_, float p_60117_, boolean p_60118_)
-