Class ShotCrossbowTrigger.Instance
- java.lang.Object
-
- net.minecraft.advancements.criterion.CriterionInstance
-
- net.minecraft.advancements.criterion.ShotCrossbowTrigger.Instance
-
- All Implemented Interfaces:
ICriterionInstance
- Enclosing class:
- ShotCrossbowTrigger
public static class ShotCrossbowTrigger.Instance extends CriterionInstance
-
-
Field Summary
Fields Modifier and Type Field Description private ItemPredicate
item
-
Constructor Summary
Constructors Constructor Description Instance(EntityPredicate.AndPredicate p_i231880_1_, ItemPredicate p_i231880_2_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
matches(ItemStack p_215121_1_)
com.google.gson.JsonObject
serializeToJson(ConditionArraySerializer p_230240_1_)
static ShotCrossbowTrigger.Instance
shotCrossbow(IItemProvider p_215122_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_i231880_1_, ItemPredicate p_i231880_2_)
-
-
Method Detail
-
shotCrossbow
public static ShotCrossbowTrigger.Instance shotCrossbow(IItemProvider p_215122_0_)
-
matches
public boolean matches(ItemStack p_215121_1_)
-
serializeToJson
public com.google.gson.JsonObject serializeToJson(ConditionArraySerializer p_230240_1_)
- Specified by:
serializeToJson
in interfaceICriterionInstance
- Overrides:
serializeToJson
in classCriterionInstance
-
-