-
Notifications
You must be signed in to change notification settings - Fork 3
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 a recipe datagen API #7
base: master
Are you sure you want to change the base?
Conversation
Ooh, this looks really nice. I'll try to review it tomorrow or Sunday |
group = 'no' | ||
|
||
requires ItemTags.COAL_ORES | ||
}.save() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are there any scenarios where you wouldn't want to save this immediately? If not, this could be auto-saved.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Saving forgotten recipes is already handled by saveForgotten()
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But are there any cases where you would want to define recipes and not save them? If not, auto-save by default would be more user-friendly.
Common/src/main/groovy/io/github/groovymc/cgl/api/datagen/recipe/GShapedRecipeBuilder.groovy
Show resolved
Hide resolved
Common/src/main/groovy/io/github/groovymc/cgl/api/datagen/recipe/GRecipeProvider.groovy
Outdated
Show resolved
Hide resolved
Common/src/extension/groovy/io/github/groovymc/cgl/api/extension/ItemExtensions.groovy
Show resolved
Hide resolved
Common/src/extension/groovy/io/github/groovymc/cgl/api/extension/ItemExtensions.groovy
Show resolved
Hide resolved
Common/src/extension/groovy/io/github/groovymc/cgl/api/extension/ItemExtensions.groovy
Outdated
Show resolved
Hide resolved
Common/src/main/groovy/io/github/groovymc/cgl/api/datagen/recipe/GRecipeProvider.groovy
Outdated
Show resolved
Hide resolved
Common/src/main/groovy/io/github/groovymc/cgl/api/datagen/recipe/GRecipeProvider.groovy
Outdated
Show resolved
Hide resolved
Common/src/main/groovy/io/github/groovymc/cgl/api/datagen/recipe/GShapedRecipeBuilder.groovy
Show resolved
Hide resolved
Common/src/main/groovy/io/github/groovymc/cgl/api/datagen/recipe/GShapedRecipeBuilder.groovy
Show resolved
Hide resolved
Common/src/main/groovy/io/github/groovymc/cgl/api/datagen/recipe/GShapedRecipeBuilder.groovy
Outdated
Show resolved
Hide resolved
...on/src/main/groovy/io/github/groovymc/cgl/api/datagen/recipe/GSingleItemRecipeBuilder.groovy
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me, though I haven't tested it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Marking a conversation as resolved when asked a question doesn't answer it
This PR adds a datagen API for recipes only, currently.