Class ShotCrossbowTrigger.TriggerInstance
java.lang.Object
net.minecraft.advancements.critereon.AbstractCriterionTriggerInstance
net.minecraft.advancements.critereon.ShotCrossbowTrigger.TriggerInstance
- All Implemented Interfaces:
SimpleCriterionTrigger.SimpleInstance
,CriterionTriggerInstance
- Enclosing class:
- ShotCrossbowTrigger
-
Field Summary
-
Constructor Summary
ConstructorDescriptionTriggerInstance
(Optional<ContextAwarePredicate> p_297452_, Optional<ItemPredicate> p_301333_) -
Method Summary
Modifier and TypeMethodDescriptionboolean
com.google.gson.JsonObject
shotCrossbow
(Optional<ItemPredicate> p_299474_) shotCrossbow
(ItemLike p_65484_) Methods inherited from class net.minecraft.advancements.critereon.AbstractCriterionTriggerInstance
playerPredicate
-
Field Details
-
item
-
-
Constructor Details
-
TriggerInstance
public TriggerInstance(Optional<ContextAwarePredicate> p_297452_, Optional<ItemPredicate> p_301333_)
-
-
Method Details
-
shotCrossbow
public static Criterion<ShotCrossbowTrigger.TriggerInstance> shotCrossbow(Optional<ItemPredicate> p_299474_) -
shotCrossbow
-
matches
-
serializeToJson
public com.google.gson.JsonObject serializeToJson()- Specified by:
serializeToJson
in interfaceCriterionTriggerInstance
- Overrides:
serializeToJson
in classAbstractCriterionTriggerInstance
-