2020-01-29 00:40:28 +01:00
|
|
|
package de.ellpeck.naturesaura.data;
|
|
|
|
|
|
|
|
import net.minecraftforge.eventbus.api.SubscribeEvent;
|
|
|
|
import net.minecraftforge.fml.common.Mod;
|
2021-12-15 16:24:53 +01:00
|
|
|
import net.minecraftforge.forge.event.lifecycle.GatherDataEvent;
|
2020-01-29 00:40:28 +01:00
|
|
|
|
|
|
|
@Mod.EventBusSubscriber(bus = Mod.EventBusSubscriber.Bus.MOD)
|
|
|
|
public final class ModData {
|
|
|
|
|
|
|
|
@SubscribeEvent
|
|
|
|
public static void gatherData(GatherDataEvent event) {
|
2021-12-15 16:30:22 +01:00
|
|
|
var generator = event.getGenerator();
|
|
|
|
var ex = event.getExistingFileHelper();
|
2021-12-16 21:56:27 +01:00
|
|
|
var blockTags = new BlockTagProvider(generator, ex);
|
2020-09-22 03:17:02 +02:00
|
|
|
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));
|
|
|
|
}
|
|
|
|
}
|