use of net.minecraftforge.common.data.ForgeItemTagsProvider in project MinecraftForge by MinecraftForge.
the class ForgeMod method gatherData.
public void gatherData(GatherDataEvent event) {
DataGenerator gen = event.getGenerator();
if (event.includeServer()) {
ExistingFileHelper existingFileHelper = event.getExistingFileHelper();
ForgeBlockTagsProvider blockTags = new ForgeBlockTagsProvider(gen, existingFileHelper);
gen.addProvider(blockTags);
gen.addProvider(new ForgeItemTagsProvider(gen, blockTags, existingFileHelper));
gen.addProvider(new ForgeFluidTagsProvider(gen, existingFileHelper));
gen.addProvider(new ForgeRecipeProvider(gen));
gen.addProvider(new ForgeLootTableProvider(gen));
}
}
Aggregations