Search in sources :

Example 1 with ForgeLootTableProvider

use of net.minecraftforge.common.data.ForgeLootTableProvider 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));
    }
}
Also used : ExistingFileHelper(net.minecraftforge.common.data.ExistingFileHelper) ForgeLootTableProvider(net.minecraftforge.common.data.ForgeLootTableProvider) DataGenerator(net.minecraft.data.DataGenerator) ForgeFluidTagsProvider(net.minecraftforge.common.data.ForgeFluidTagsProvider) ForgeItemTagsProvider(net.minecraftforge.common.data.ForgeItemTagsProvider) ForgeBlockTagsProvider(net.minecraftforge.common.data.ForgeBlockTagsProvider) ForgeRecipeProvider(net.minecraftforge.common.data.ForgeRecipeProvider)

Aggregations

DataGenerator (net.minecraft.data.DataGenerator)1 ExistingFileHelper (net.minecraftforge.common.data.ExistingFileHelper)1 ForgeBlockTagsProvider (net.minecraftforge.common.data.ForgeBlockTagsProvider)1 ForgeFluidTagsProvider (net.minecraftforge.common.data.ForgeFluidTagsProvider)1 ForgeItemTagsProvider (net.minecraftforge.common.data.ForgeItemTagsProvider)1 ForgeLootTableProvider (net.minecraftforge.common.data.ForgeLootTableProvider)1 ForgeRecipeProvider (net.minecraftforge.common.data.ForgeRecipeProvider)1