Skip to content

Change compat datagen from enum to interface #8895

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

Open
wants to merge 3 commits into
base: mc1.20.1/dev
Choose a base branch
from

Conversation

VoidLeech
Copy link
Collaborator

Will allow addons/anyone else to define their own mods to have compat-recipes with, instead of being limited to the ones Create supports or having to reimplement the wheel (recipe builder).

Additionally moves the methods in Create's datagen classes that used the recipe/Mods enum to the base class, now using the interface, so some common recipe constructions don't have to be reimplemented either.

Conflicts with my two big open datagen PRs (well not per se, but those introduce new methods that use Mods that should really also use this new interface, could potentially be moved into this PR, relevant commits: e9a2617 69afd90, just let me know and I'll cherry-pick them over)

@VoidLeech VoidLeech added the area: api Issue or PR is related to API label Jul 8, 2025
Copy link
Collaborator

@adaliszk adaliszk left a comment

Choose a reason for hiding this comment

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

While I am no maintainer, this API change looks great! Adds a really nice option for other mods to make a compat. I suppose one thing would be interesting to do later is to release the API as a separate maven package.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: api Issue or PR is related to API
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants