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 interface net.minecraft.advancements.CriterionTrigger
CriterionTrigger.Listener<T extends CriterionTriggerInstance>
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateInstance
(com.google.gson.JsonObject p_27677_, EntityPredicate.Composite p_27678_, DeserializationContext p_27679_) getId()
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
-
Field Details
-
ID
-
-
Constructor Details
-
EnchantedItemTrigger
public EnchantedItemTrigger()
-
-
Method Details
-
getId
-
createInstance
public EnchantedItemTrigger.TriggerInstance createInstance(com.google.gson.JsonObject p_27677_, EntityPredicate.Composite p_27678_, DeserializationContext p_27679_) - Specified by:
createInstance
in classSimpleCriterionTrigger<EnchantedItemTrigger.TriggerInstance>
-
trigger
-