User Tools

Site Tools


fr:tutoriel:data-generator-introduction

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
fr:tutoriel:data-generator-introduction [2021/12/24 20:53] mysterious_devfr:tutoriel:data-generator-introduction [2021/12/24 22:16] mysterious_dev
Line 12: Line 12:
  resources {  resources {
  srcDirs += [  srcDirs += [
- 'src/main/generated'+ 'src/main/generated'
  ]  ]
  }  }
Line 32: Line 32:
 } }
 assemble.dependsOn runDatagen assemble.dependsOn runDatagen
 +</code>
 +
 +==== Classe principale pour les Data Generators ====
 +
 +<code java>
 +public class ExampleDataMod implements DataGeneratorEntrypoint {
 +    @Override
 +    public void onInitializeDataGenerator(FabricDataGenerator fabricDataGenerator) {
 +    
 +    }
 +}
 +
 +</code>
 +
 +==== fabric.mod.json ====
 +
 +<code json>
 +"fabric-datagen" : [
 +    "fr.mysteriousdev.gen_mod_fabric.data.ExampleDataMod"
 +]
 </code> </code>
  
fr/tutoriel/data-generator-introduction.txt · Last modified: 2021/12/24 22:16 by 127.0.0.1