Class PlayerHurtEntityTrigger
java.lang.Object
net.minecraft.advancements.criterion.AbstractCriterionTrigger<PlayerHurtEntityTrigger.Instance>
net.minecraft.advancements.criterion.PlayerHurtEntityTrigger
- All Implemented Interfaces:
ICriterionTrigger<PlayerHurtEntityTrigger.Instance>
public class PlayerHurtEntityTrigger
extends AbstractCriterionTrigger<PlayerHurtEntityTrigger.Instance>
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.advancements.ICriterionTrigger
ICriterionTrigger.Listener<T extends ICriterionInstance>
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateInstance
(com.google.gson.JsonObject p_230241_1_, EntityPredicate.AndPredicate p_230241_2_, ConditionArrayParser p_230241_3_) getId()
void
trigger
(ServerPlayerEntity p_192220_1_, Entity p_192220_2_, DamageSource p_192220_3_, float p_192220_4_, float p_192220_5_, boolean p_192220_6_) Methods inherited from class net.minecraft.advancements.criterion.AbstractCriterionTrigger
addPlayerListener, createInstance, removePlayerListener, removePlayerListeners, trigger
-
Field Details
-
ID
-
-
Constructor Details
-
PlayerHurtEntityTrigger
public PlayerHurtEntityTrigger()
-
-
Method Details
-
getId
-
createInstance
public PlayerHurtEntityTrigger.Instance createInstance(com.google.gson.JsonObject p_230241_1_, EntityPredicate.AndPredicate p_230241_2_, ConditionArrayParser p_230241_3_) - Specified by:
createInstance
in classAbstractCriterionTrigger<PlayerHurtEntityTrigger.Instance>
-
trigger
public void trigger(ServerPlayerEntity p_192220_1_, Entity p_192220_2_, DamageSource p_192220_3_, float p_192220_4_, float p_192220_5_, boolean p_192220_6_)
-