Class KilledTrigger
- java.lang.Object
-
- net.minecraft.advancements.criterion.AbstractCriterionTrigger<KilledTrigger.Instance>
-
- net.minecraft.advancements.criterion.KilledTrigger
-
- All Implemented Interfaces:
ICriterionTrigger<KilledTrigger.Instance>
public class KilledTrigger extends AbstractCriterionTrigger<KilledTrigger.Instance>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
KilledTrigger.Instance
-
Nested classes/interfaces inherited from interface net.minecraft.advancements.ICriterionTrigger
ICriterionTrigger.Listener<T extends ICriterionInstance>
-
-
Field Summary
Fields Modifier and Type Field Description private ResourceLocation
id
-
Constructor Summary
Constructors Constructor Description KilledTrigger(ResourceLocation p_i47433_1_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description KilledTrigger.Instance
createInstance(com.google.gson.JsonObject p_230241_1_, EntityPredicate.AndPredicate p_230241_2_, ConditionArrayParser p_230241_3_)
ResourceLocation
getId()
void
trigger(ServerPlayerEntity p_192211_1_, Entity p_192211_2_, DamageSource p_192211_3_)
-
Methods inherited from class net.minecraft.advancements.criterion.AbstractCriterionTrigger
addPlayerListener, createInstance, removePlayerListener, removePlayerListeners, trigger
-
-
-
-
Field Detail
-
id
private final ResourceLocation id
-
-
Constructor Detail
-
KilledTrigger
public KilledTrigger(ResourceLocation p_i47433_1_)
-
-
Method Detail
-
getId
public ResourceLocation getId()
-
createInstance
public KilledTrigger.Instance createInstance(com.google.gson.JsonObject p_230241_1_, EntityPredicate.AndPredicate p_230241_2_, ConditionArrayParser p_230241_3_)
- Specified by:
createInstance
in classAbstractCriterionTrigger<KilledTrigger.Instance>
-
trigger
public void trigger(ServerPlayerEntity p_192211_1_, Entity p_192211_2_, DamageSource p_192211_3_)
-
-