Class RecipeCraftedTrigger.TriggerInstance
java.lang.Object
net.minecraft.advancements.critereon.AbstractCriterionTriggerInstance
net.minecraft.advancements.critereon.RecipeCraftedTrigger.TriggerInstance
- All Implemented Interfaces:
SimpleCriterionTrigger.SimpleInstance
,CriterionTriggerInstance
- Enclosing class:
- RecipeCraftedTrigger
-
Field Summary
Modifier and TypeFieldDescriptionprivate final List<ItemPredicate>
private final ResourceLocation
-
Constructor Summary
ConstructorDescriptionTriggerInstance
(Optional<ContextAwarePredicate> p_300694_, ResourceLocation p_286906_, List<ItemPredicate> p_286302_) -
Method Summary
Modifier and TypeMethodDescriptioncraftedItem
(ResourceLocation p_282794_) craftedItem
(ResourceLocation p_283538_, List<ItemPredicate.Builder> p_299678_) (package private) boolean
matches
(ResourceLocation p_283528_, List<ItemStack> p_283698_) com.google.gson.JsonObject
Methods inherited from class net.minecraft.advancements.critereon.AbstractCriterionTriggerInstance
playerPredicate
-
Field Details
-
recipeId
-
predicates
-
-
Constructor Details
-
TriggerInstance
public TriggerInstance(Optional<ContextAwarePredicate> p_300694_, ResourceLocation p_286906_, List<ItemPredicate> p_286302_)
-
-
Method Details
-
craftedItem
public static Criterion<RecipeCraftedTrigger.TriggerInstance> craftedItem(ResourceLocation p_283538_, List<ItemPredicate.Builder> p_299678_) -
craftedItem
public static Criterion<RecipeCraftedTrigger.TriggerInstance> craftedItem(ResourceLocation p_282794_) -
matches
-
serializeToJson
public com.google.gson.JsonObject serializeToJson()- Specified by:
serializeToJson
in interfaceCriterionTriggerInstance
- Overrides:
serializeToJson
in classAbstractCriterionTriggerInstance
-