use of net.tropicraft.core.common.data.TropicraftItemTagsProvider in project Tropicraft by Tropicraft.
the class Tropicraft method gatherData.
private void gatherData(GatherDataEvent event) {
DataGenerator gen = event.getGenerator();
ExistingFileHelper existingFileHelper = event.getExistingFileHelper();
if (event.includeClient()) {
TropicraftBlockstateProvider blockstates = new TropicraftBlockstateProvider(gen, existingFileHelper);
gen.addProvider(blockstates);
gen.addProvider(new TropicraftItemModelProvider(gen, blockstates.getExistingHelper()));
gen.addProvider(new TropicraftLangProvider(gen));
}
if (event.includeServer()) {
TropicraftBlockTagsProvider blockTags = new TropicraftBlockTagsProvider(gen, existingFileHelper);
gen.addProvider(blockTags);
gen.addProvider(new TropicraftItemTagsProvider(gen, blockTags, existingFileHelper));
gen.addProvider(new TropicraftRecipeProvider(gen));
gen.addProvider(new TropicraftLootTableProvider(gen));
gen.addProvider(new TropicraftEntityTypeTagsProvider(gen, existingFileHelper));
gatherWorldgenData(gen);
}
}
Aggregations