Search in sources :

Example 1 with TropicraftBlockstateProvider

use of net.tropicraft.core.client.data.TropicraftBlockstateProvider 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);
    }
}
Also used : TropicraftItemModelProvider(net.tropicraft.core.client.data.TropicraftItemModelProvider) TropicraftBlockstateProvider(net.tropicraft.core.client.data.TropicraftBlockstateProvider) TropicraftLootTableProvider(net.tropicraft.core.common.data.TropicraftLootTableProvider) ExistingFileHelper(net.minecraftforge.common.data.ExistingFileHelper) TropicraftEntityTypeTagsProvider(net.tropicraft.core.common.data.TropicraftEntityTypeTagsProvider) TropicraftBlockTagsProvider(net.tropicraft.core.common.data.TropicraftBlockTagsProvider) DataGenerator(net.minecraft.data.DataGenerator) TropicraftItemTagsProvider(net.tropicraft.core.common.data.TropicraftItemTagsProvider) TropicraftRecipeProvider(net.tropicraft.core.common.data.TropicraftRecipeProvider) TropicraftLangProvider(net.tropicraft.core.client.data.TropicraftLangProvider)

Aggregations

DataGenerator (net.minecraft.data.DataGenerator)1 ExistingFileHelper (net.minecraftforge.common.data.ExistingFileHelper)1 TropicraftBlockstateProvider (net.tropicraft.core.client.data.TropicraftBlockstateProvider)1 TropicraftItemModelProvider (net.tropicraft.core.client.data.TropicraftItemModelProvider)1 TropicraftLangProvider (net.tropicraft.core.client.data.TropicraftLangProvider)1 TropicraftBlockTagsProvider (net.tropicraft.core.common.data.TropicraftBlockTagsProvider)1 TropicraftEntityTypeTagsProvider (net.tropicraft.core.common.data.TropicraftEntityTypeTagsProvider)1 TropicraftItemTagsProvider (net.tropicraft.core.common.data.TropicraftItemTagsProvider)1 TropicraftLootTableProvider (net.tropicraft.core.common.data.TropicraftLootTableProvider)1 TropicraftRecipeProvider (net.tropicraft.core.common.data.TropicraftRecipeProvider)1