Class EnchantedItemTrigger.TriggerInstance
java.lang.Object
net.minecraft.advancements.critereon.AbstractCriterionTriggerInstance
net.minecraft.advancements.critereon.EnchantedItemTrigger.TriggerInstance
- All Implemented Interfaces:
SimpleCriterionTrigger.SimpleInstance
,CriterionTriggerInstance
- Enclosing class:
- EnchantedItemTrigger
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Optional<ItemPredicate>
private final MinMaxBounds.Ints
-
Constructor Summary
ConstructorDescriptionTriggerInstance
(Optional<ContextAwarePredicate> p_299804_, Optional<ItemPredicate> p_297635_, MinMaxBounds.Ints p_286367_) -
Method Summary
Modifier and TypeMethodDescriptionboolean
com.google.gson.JsonObject
Methods inherited from class net.minecraft.advancements.critereon.AbstractCriterionTriggerInstance
playerPredicate
-
Field Details
-
item
-
levels
-
-
Constructor Details
-
TriggerInstance
public TriggerInstance(Optional<ContextAwarePredicate> p_299804_, Optional<ItemPredicate> p_297635_, MinMaxBounds.Ints p_286367_)
-
-
Method Details
-
enchantedItem
-
matches
-
serializeToJson
public com.google.gson.JsonObject serializeToJson()- Specified by:
serializeToJson
in interfaceCriterionTriggerInstance
- Overrides:
serializeToJson
in classAbstractCriterionTriggerInstance
-