Class EnchantedItemTrigger
java.lang.Object
net.minecraft.advancements.critereon.SimpleCriterionTrigger<EnchantedItemTrigger.TriggerInstance>
net.minecraft.advancements.critereon.EnchantedItemTrigger
- All Implemented Interfaces:
CriterionTrigger<EnchantedItemTrigger.TriggerInstance>
public class EnchantedItemTrigger
extends SimpleCriterionTrigger<EnchantedItemTrigger.TriggerInstance>
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.advancements.critereon.SimpleCriterionTrigger
SimpleCriterionTrigger.SimpleInstance
Nested classes/interfaces inherited from interface net.minecraft.advancements.CriterionTrigger
CriterionTrigger.Listener<T extends CriterionTriggerInstance>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateInstance
(com.google.gson.JsonObject p_286360_, Optional<ContextAwarePredicate> p_298531_, DeserializationContext p_286441_) void
trigger
(ServerPlayer p_27669_, ItemStack p_27670_, int p_27671_) Methods inherited from class net.minecraft.advancements.critereon.SimpleCriterionTrigger
addPlayerListener, createInstance, removePlayerListener, removePlayerListeners, trigger
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.advancements.CriterionTrigger
createCriterion
-
Constructor Details
-
EnchantedItemTrigger
public EnchantedItemTrigger()
-
-
Method Details
-
createInstance
public EnchantedItemTrigger.TriggerInstance createInstance(com.google.gson.JsonObject p_286360_, Optional<ContextAwarePredicate> p_298531_, DeserializationContext p_286441_) - Specified by:
createInstance
in classSimpleCriterionTrigger<EnchantedItemTrigger.TriggerInstance>
-
trigger
-