Class ItemUsedOnLocationTrigger
java.lang.Object
net.minecraft.advancements.critereon.SimpleCriterionTrigger<ItemUsedOnLocationTrigger.TriggerInstance>
net.minecraft.advancements.critereon.ItemUsedOnLocationTrigger
- All Implemented Interfaces:
CriterionTrigger<ItemUsedOnLocationTrigger.TriggerInstance>
public class ItemUsedOnLocationTrigger
extends SimpleCriterionTrigger<ItemUsedOnLocationTrigger.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_286301_, ContextAwarePredicate p_286748_, DeserializationContext p_286322_) getId()
void
trigger
(ServerPlayer p_286813_, BlockPos p_286625_, ItemStack p_286620_) Methods inherited from class net.minecraft.advancements.critereon.SimpleCriterionTrigger
addPlayerListener, createInstance, removePlayerListener, removePlayerListeners, trigger
-
Field Details
-
id
-
-
Constructor Details
-
ItemUsedOnLocationTrigger
-
-
Method Details
-
getId
-
createInstance
public ItemUsedOnLocationTrigger.TriggerInstance createInstance(com.google.gson.JsonObject p_286301_, ContextAwarePredicate p_286748_, DeserializationContext p_286322_) - Specified by:
createInstance
in classSimpleCriterionTrigger<ItemUsedOnLocationTrigger.TriggerInstance>
-
trigger
-