Search in sources :

Example 1 with BlockTagProvider

use of knightminer.ceramics.datagen.BlockTagProvider in project Ceramics by KnightMiner.

the class Ceramics method gatherData.

private void gatherData(GatherDataEvent event) {
    if (event.includeServer()) {
        DataGenerator gen = event.getGenerator();
        ExistingFileHelper helper = event.getExistingFileHelper();
        BlockTagsProvider blockTags = new BlockTagProvider(gen, helper);
        gen.addProvider(blockTags);
        gen.addProvider(new ItemTagProvider(gen, blockTags, helper));
        gen.addProvider(new FluidTagProvider(gen, helper));
        gen.addProvider(new RecipeProvider(gen));
        gen.addProvider(new LootTableProvider(gen));
    }
}
Also used : ExistingFileHelper(net.minecraftforge.common.data.ExistingFileHelper) ItemTagProvider(knightminer.ceramics.datagen.ItemTagProvider) RecipeProvider(knightminer.ceramics.datagen.RecipeProvider) LootTableProvider(knightminer.ceramics.datagen.LootTableProvider) DataGenerator(net.minecraft.data.DataGenerator) BlockTagProvider(knightminer.ceramics.datagen.BlockTagProvider) FluidTagProvider(knightminer.ceramics.datagen.FluidTagProvider) BlockTagsProvider(net.minecraft.data.BlockTagsProvider)

Aggregations

BlockTagProvider (knightminer.ceramics.datagen.BlockTagProvider)1 FluidTagProvider (knightminer.ceramics.datagen.FluidTagProvider)1 ItemTagProvider (knightminer.ceramics.datagen.ItemTagProvider)1 LootTableProvider (knightminer.ceramics.datagen.LootTableProvider)1 RecipeProvider (knightminer.ceramics.datagen.RecipeProvider)1 BlockTagsProvider (net.minecraft.data.BlockTagsProvider)1 DataGenerator (net.minecraft.data.DataGenerator)1 ExistingFileHelper (net.minecraftforge.common.data.ExistingFileHelper)1