fr:tutoriel:data-generator-introduction
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| fr:tutoriel:data-generator-introduction [2021/12/24 20:53] – mysterious_dev | fr:tutoriel:data-generator-introduction [2021/12/24 22:16] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 12: | Line 12: | ||
| resources { | resources { | ||
| srcDirs += [ | srcDirs += [ | ||
| - | ' | + | ' |
| ] | ] | ||
| } | } | ||
| Line 32: | Line 32: | ||
| } | } | ||
| assemble.dependsOn runDatagen | assemble.dependsOn runDatagen | ||
| + | </ | ||
| + | |||
| + | ==== Classe principale pour les Data Generators ==== | ||
| + | |||
| + | <code java> | ||
| + | public class ExampleDataMod implements DataGeneratorEntrypoint { | ||
| + | @Override | ||
| + | public void onInitializeDataGenerator(FabricDataGenerator fabricDataGenerator) { | ||
| + | | ||
| + | } | ||
| + | } | ||
| + | |||
| + | </ | ||
| + | |||
| + | ==== fabric.mod.json ==== | ||
| + | |||
| + | <code json> | ||
| + | " | ||
| + | " | ||
| + | ] | ||
| </ | </ | ||
fr/tutoriel/data-generator-introduction.1640379219.txt.gz · Last modified: 2021/12/24 20:53 by mysterious_dev