-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Add PredicateChoice recipe choice for crafting #8446
Copy link
Copy link
Closed
Labels
status: acceptedDisputed bug is accepted as valid or Feature accepted as desired to be added.Disputed bug is accepted as valid or Feature accepted as desired to be added.type: featureRequest for a new Feature.Request for a new Feature.
Description
Activity
Metadata
Metadata
Assignees
Labels
status: acceptedDisputed bug is accepted as valid or Feature accepted as desired to be added.Disputed bug is accepted as valid or Feature accepted as desired to be added.type: featureRequest for a new Feature.Request for a new Feature.
Is your feature request related to a problem?
Yup. I'm having some issues with custom recipes in my plugin, but it seems that
ExactChoicedoesn't work as a standard implementation for my specific condition to check ingredients, so I tried creating anotherRecipeChoicebut it didn't work sinceIngredient#testdidn't searches forRecipeChoice#test.Describe the solution you'd like.
I'd like for a match case for
RecipeChoice#testin crafting menu, since it's already a predicate and it would be usable.Also, we could make
PredicateChoicein API to let the developer choose what predicate should work for matching its ingredient.Describe alternatives you've considered.
I think there isn't another dedicated alternative for that, since the only way to match my custom recipe is based on
Ingredient#test, and it should work if it could useRecipeChoice#testOther
It's an image from the specific code where it would be included in.
