Skip to content

Conversation

@Zorbatron
Copy link
Member

What

  • Adds a few methods to the main recipes builder to make making recipes easier. Example: .fluidInputs(material, amount), instead of .fluidInputs(material.getFluid(amount).
  • Adds a bunch of methods to the assembly line and scanner/station research recipe builder to make setting up recipe easier. Example: .researchStack(metaItem, amount) instead of .researchStack(metaItem.getStackForm(amount))

Potential Compatibility Issues

In the AssemblyLineRecipeBuilder, the .scannerResearch(itemStack) method used to make a new ScannerRecipeBuilder in the lambda when that lambda is already applied with a new builder. I don't see why that was there, but I could be missing the original context.

@Zorbatron Zorbatron requested a review from a team as a code owner April 8, 2025 19:37
@Zorbatron Zorbatron added the type: refactor Suggestion to refactor a section of code label Apr 8, 2025
@Zorbatron Zorbatron merged commit 3315f3e into master Apr 27, 2025
3 checks passed
@Zorbatron Zorbatron deleted the zb/recipe-refactor branch April 27, 2025 03:13
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