Class UsedTotemTrigger.Instance
- java.lang.Object
-
- net.minecraft.advancements.criterion.CriterionInstance
-
- net.minecraft.advancements.criterion.UsedTotemTrigger.Instance
-
- All Implemented Interfaces:
ICriterionInstance
- Enclosing class:
- UsedTotemTrigger
public static class UsedTotemTrigger.Instance extends CriterionInstance
-
-
Field Summary
Fields Modifier and Type Field Description private ItemPredicate
item
-
Constructor Summary
Constructors Constructor Description Instance(EntityPredicate.AndPredicate p_i232051_1_, ItemPredicate p_i232051_2_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
matches(ItemStack p_193218_1_)
com.google.gson.JsonObject
serializeToJson(ConditionArraySerializer p_230240_1_)
static UsedTotemTrigger.Instance
usedTotem(IItemProvider p_203941_0_)
-
Methods inherited from class net.minecraft.advancements.criterion.CriterionInstance
getCriterion, getPlayerPredicate, toString
-
-
-
-
Field Detail
-
item
private final ItemPredicate item
-
-
Constructor Detail
-
Instance
public Instance(EntityPredicate.AndPredicate p_i232051_1_, ItemPredicate p_i232051_2_)
-
-
Method Detail
-
usedTotem
public static UsedTotemTrigger.Instance usedTotem(IItemProvider p_203941_0_)
-
matches
public boolean matches(ItemStack p_193218_1_)
-
serializeToJson
public com.google.gson.JsonObject serializeToJson(ConditionArraySerializer p_230240_1_)
- Specified by:
serializeToJson
in interfaceICriterionInstance
- Overrides:
serializeToJson
in classCriterionInstance
-
-