Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add getAllMatches and getAllOfType method to ServerRecipeManager #4432

Open
wants to merge 2 commits into
base: 1.21.4
Choose a base branch
from

Conversation

Patbox
Copy link
Contributor

@Patbox Patbox commented Feb 9, 2025

Adds 2 methods to ServerRecipeManager via interface injection:

  • Stream getAllMatches(RecipeType, RecipeInput, World) - gets all matches of a recipe, instead of only first one (like getFirstMatch)
  • Collection getAllOfType(RecipeType type) - returns all recipes of selected type.

Both of these are just simple accessors to methods provided by PreparedRecipes class.

@modmuss50 modmuss50 added enhancement New feature or request last call If you care, make yourself heard right away! small change labels Feb 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request last call If you care, make yourself heard right away! small change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants