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

fabric: Suggesting add class to manifest which impls fabric.api.datagen.v1.DataGeneratorEntrypoint? #2381

Open
KisaragiEffective opened this issue Oct 1, 2024 · 0 comments

Comments

@KisaragiEffective
Copy link

Minecraft Development for IntelliJ plugin version

2024.2-1.8.1

Description of the feature request

MOD developer may implement net.fabricmc.fabric.api.datagen.v1.DataGeneratorEntrypoint to generate datapack from code. This is useful when one prefer code than JSONs, and is actually convertible by "Data Generation API".

We can enable it from the build.gradle. However, one should add implementation FQCN in fabric.mod.json to refer the entrypoints in entrypoints.fabric-datagen[*].

One can notice easily by issued warning from ./gradlew runDatagen:

[04:54:40] [main/WARN] (FabricDataGenHelper) No data generator entrypoints are defined. Implement net.fabricmc.fabric.api.datagen.v1.DataGeneratorEntrypoint and add your class to the 'fabric-datagen' entrypoint key in your fabric.mod.json.

However, it might be better to have integration on plugin side.

@KisaragiEffective KisaragiEffective changed the title fabric: integrating around fabric.api.datagen.v1.DataGeneratorEntrypoint? fabric: Suggesting add class to manifest which impls fabric.api.datagen.v1.DataGeneratorEntrypoint? Oct 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant