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

Overload AbstractRecipeLogic functions #2311

Merged
merged 5 commits into from
Jan 14, 2024
Merged

Overload AbstractRecipeLogic functions #2311

merged 5 commits into from
Jan 14, 2024

Conversation

bruberu
Copy link
Member

@bruberu bruberu commented Dec 18, 2023

What

This PR adds helper functions to AbstractRecipeLogic that allows the upcoming kitchen multiblock in GTFO to use external inventories to run recipes.

Implementation Details

Hopefully, the overrides don't mess with any tile entities, although there are no overloads that seem to be used anywhere that GTFO intends to use these new methods.

Outcome

Added more expansive signatures to AbstractRecipeLogic methods.

Potential Compatibility Issues

All of the original signatures were kept, so there probably won't be problems here.

@bruberu bruberu added the type: refactor Suggestion to refactor a section of code label Dec 18, 2023
@bruberu bruberu requested a review from a team as a code owner December 18, 2023 03:39
recipe = Recipe.trimRecipeOutputs(recipe, getRecipeMap(), metaTileEntity.getItemOutputLimit(),
metaTileEntity.getFluidOutputLimit());

// Pass in the trimmed recipe to the parallel logic
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why remove this comment? It is still accurate

@bruberu bruberu merged commit 9022c0f into master Jan 14, 2024
3 checks passed
@bruberu bruberu deleted the bru-arl-signatures branch January 14, 2024 04:52
serenibyss pushed a commit that referenced this pull request Jan 21, 2024
serenibyss pushed a commit that referenced this pull request Jan 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: refactor Suggestion to refactor a section of code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants