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 Rustic compat #146

Merged
merged 5 commits into from
Apr 6, 2024
Merged

add Rustic compat #146

merged 5 commits into from
Apr 6, 2024

Conversation

WaitingIdly
Copy link
Collaborator

changes in this PR:

  • Custom ICondenserRecipe and IEvaporatingBasinRecipe classes to allow additional customization of these recipes types.
    • ExtendedEvaporatingBasinRecipe allows customizing the time taken.
    • CondenserRecipe allows customizing fluid input, bottle slot item, and time taken.
  • Adds BrewingBarrel, CrushingTub, EvaporatingBasin, and Condenser (both basic and advanced) compat
  • adds examples file and i18n wiki keys for the above compat.

@WaitingIdly WaitingIdly added the mod compat Relating to compatability with a mod or features of a mod label Mar 23, 2024
Comment on lines +103 to +110
if (!validate()) return null;
ICrushingTubRecipe recipe = null;
for (ItemStack itemStack : input.get(0).getMatchingStacks()) {
ICrushingTubRecipe recipe1 = new CrushingTubRecipe(fluidOutput.get(0), itemStack, byproduct);
ModSupport.RUSTIC.get().crushingTub.add(recipe1);
if (recipe == null) recipe = recipe1;
}
return recipe;
Copy link
Member

Choose a reason for hiding this comment

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

This is fine for now, but im thinking about returning a list of all added recipes. We have something like this in a few more places.

@brachy84 brachy84 merged commit b31f869 into CleanroomMC:master Apr 6, 2024
@WaitingIdly WaitingIdly deleted the rustic branch April 7, 2024 01:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
mod compat Relating to compatability with a mod or features of a mod
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants