Class ItemUsedOnBlockTrigger
java.lang.Object
net.minecraft.advancements.critereon.SimpleCriterionTrigger<ItemUsedOnBlockTrigger.TriggerInstance>
net.minecraft.advancements.critereon.ItemUsedOnBlockTrigger
- All Implemented Interfaces:
CriterionTrigger<ItemUsedOnBlockTrigger.TriggerInstance>
public class ItemUsedOnBlockTrigger
extends SimpleCriterionTrigger<ItemUsedOnBlockTrigger.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_45493_, EntityPredicate.Composite p_45494_, DeserializationContext p_45495_)
getId()
void
trigger(ServerPlayer p_45483_, BlockPos p_45484_, ItemStack p_45485_)
Methods inherited from class net.minecraft.advancements.critereon.SimpleCriterionTrigger
addPlayerListener, createInstance, removePlayerListener, removePlayerListeners, trigger
-
Field Details
-
ID
-
-
Constructor Details
-
ItemUsedOnBlockTrigger
public ItemUsedOnBlockTrigger()
-
-
Method Details
-
getId
-
createInstance
public ItemUsedOnBlockTrigger.TriggerInstance createInstance(com.google.gson.JsonObject p_45493_, EntityPredicate.Composite p_45494_, DeserializationContext p_45495_)- Specified by:
createInstance
in classSimpleCriterionTrigger<ItemUsedOnBlockTrigger.TriggerInstance>
-
trigger
-