mirror of
https://github.com/Ellpeck/NaturesAura.git
synced 2024-11-13 00:09:09 +01:00
23 lines
992 B
Java
23 lines
992 B
Java
package de.ellpeck.naturesaura.data;
|
|
|
|
import net.minecraft.data.DataGenerator;
|
|
import net.minecraftforge.common.data.ExistingFileHelper;
|
|
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();
|
|
BlockTagProvider blockTags = new BlockTagProvider(generator);
|
|
generator.addProvider(blockTags);
|
|
generator.addProvider(new ItemTagProvider(generator, blockTags, ex));
|
|
generator.addProvider(new BlockLootProvider(generator));
|
|
generator.addProvider(new BlockStateGenerator(generator, ex));
|
|
generator.addProvider(new ItemModelGenerator(generator, ex));
|
|
}
|
|
}
|