Class PositionTrigger
- java.lang.Object
-
- net.minecraft.advancements.criterion.AbstractCriterionTrigger<PositionTrigger.Instance>
-
- net.minecraft.advancements.criterion.PositionTrigger
-
- All Implemented Interfaces:
ICriterionTrigger<PositionTrigger.Instance>
public class PositionTrigger extends AbstractCriterionTrigger<PositionTrigger.Instance>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PositionTrigger.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 PositionTrigger(ResourceLocation p_i47432_1_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PositionTrigger.Instance
createInstance(com.google.gson.JsonObject p_230241_1_, EntityPredicate.AndPredicate p_230241_2_, ConditionArrayParser p_230241_3_)
ResourceLocation
getId()
void
trigger(ServerPlayerEntity p_192215_1_)
-
Methods inherited from class net.minecraft.advancements.criterion.AbstractCriterionTrigger
addPlayerListener, createInstance, removePlayerListener, removePlayerListeners, trigger
-
-
-
-
Field Detail
-
id
private final ResourceLocation id
-
-
Constructor Detail
-
PositionTrigger
public PositionTrigger(ResourceLocation p_i47432_1_)
-
-
Method Detail
-
getId
public ResourceLocation getId()
-
createInstance
public PositionTrigger.Instance createInstance(com.google.gson.JsonObject p_230241_1_, EntityPredicate.AndPredicate p_230241_2_, ConditionArrayParser p_230241_3_)
- Specified by:
createInstance
in classAbstractCriterionTrigger<PositionTrigger.Instance>
-
trigger
public void trigger(ServerPlayerEntity p_192215_1_)
-
-