2020-01-29 00:40:28 +01:00
|
|
|
package de.ellpeck.naturesaura.data;
|
|
|
|
|
|
|
|
import net.minecraft.data.DataGenerator;
|
2020-09-22 03:17:02 +02:00
|
|
|
import net.minecraftforge.common.data.ExistingFileHelper;
|
2020-01-29 00:40:28 +01:00
|
|
|
import net.minecraftforge.eventbus.api.SubscribeEvent;
|
|
|
|
import net.minecraftforge.fml.common.Mod;
|
|
|
|
import net.minecraftforge.fml.event.lifecycle.GatherDataEvent;
|
|
|
|
|
|
|
|
@Mod.EventBusSubscriber(bus = Mod.EventBusSubscriber.Bus.MOD)
|
|
|
|
public final class ModData {
|
|
|
|
|
|
|
|
@SubscribeEvent
|
|
|
|
public static void gatherData(GatherDataEvent event) {
|
|
|
|
DataGenerator generator = event.getGenerator();
|
|
|
|
ExistingFileHelper ex = event.getExistingFileHelper();
|
2020-09-22 03:17:02 +02:00
|
|
|
BlockTagProvider blockTags = new BlockTagProvider(generator);
|
|
|
|
generator.addProvider(blockTags);
|
|
|
|
generator.addProvider(new ItemTagProvider(generator, blockTags, ex));
|
2020-01-29 00:40:28 +01:00
|
|
|
generator.addProvider(new BlockLootProvider(generator));
|
|
|
|
generator.addProvider(new BlockStateGenerator(generator, ex));
|
|
|
|
generator.addProvider(new ItemModelGenerator(generator, ex));
|
|
|
|
}
|
|
|
|
}
|