mirror of
https://github.com/Ellpeck/NaturesAura.git
synced 2024-11-13 00:09:09 +01:00
21 lines
976 B
Java
21 lines
976 B
Java
package de.ellpeck.naturesaura.data;
|
|
|
|
import net.minecraftforge.eventbus.api.SubscribeEvent;
|
|
import net.minecraftforge.fml.common.Mod;
|
|
import net.minecraftforge.forge.event.lifecycle.GatherDataEvent;
|
|
|
|
@Mod.EventBusSubscriber(bus = Mod.EventBusSubscriber.Bus.MOD)
|
|
public final class ModData {
|
|
|
|
@SubscribeEvent
|
|
public static void gatherData(GatherDataEvent event) {
|
|
var generator = event.getGenerator();
|
|
var ex = event.getExistingFileHelper();
|
|
var blockTags = new BlockTagProvider(generator, ex);
|
|
generator.addProvider(event.includeServer(), blockTags);
|
|
generator.addProvider(event.includeServer(), new ItemTagProvider(generator, blockTags, ex));
|
|
generator.addProvider(event.includeServer(), new BlockLootProvider(generator));
|
|
generator.addProvider(event.includeServer(), new BlockStateGenerator(generator, ex));
|
|
generator.addProvider(event.includeServer(), new ItemModelGenerator(generator, ex));
|
|
}
|
|
}
|