Class EnchantedItemTrigger.Instance
- java.lang.Object
-
- net.minecraft.advancements.criterion.CriterionInstance
-
- net.minecraft.advancements.criterion.EnchantedItemTrigger.Instance
-
- All Implemented Interfaces:
ICriterionInstance
- Enclosing class:
- EnchantedItemTrigger
public static class EnchantedItemTrigger.Instance extends CriterionInstance
-
-
Field Summary
Fields Modifier and Type Field Description private ItemPredicate
item
private MinMaxBounds.IntBound
levels
-
Constructor Summary
Constructors Constructor Description Instance(EntityPredicate.AndPredicate p_i231556_1_, ItemPredicate p_i231556_2_, MinMaxBounds.IntBound p_i231556_3_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static EnchantedItemTrigger.Instance
enchantedItem()
boolean
matches(ItemStack p_192257_1_, int p_192257_2_)
com.google.gson.JsonObject
serializeToJson(ConditionArraySerializer p_230240_1_)
-
Methods inherited from class net.minecraft.advancements.criterion.CriterionInstance
getCriterion, getPlayerPredicate, toString
-
-
-
-
Field Detail
-
item
private final ItemPredicate item
-
levels
private final MinMaxBounds.IntBound levels
-
-
Constructor Detail
-
Instance
public Instance(EntityPredicate.AndPredicate p_i231556_1_, ItemPredicate p_i231556_2_, MinMaxBounds.IntBound p_i231556_3_)
-
-
Method Detail
-
enchantedItem
public static EnchantedItemTrigger.Instance enchantedItem()
-
matches
public boolean matches(ItemStack p_192257_1_, int p_192257_2_)
-
serializeToJson
public com.google.gson.JsonObject serializeToJson(ConditionArraySerializer p_230240_1_)
- Specified by:
serializeToJson
in interfaceICriterionInstance
- Overrides:
serializeToJson
in classCriterionInstance
-
-