use of com.bluepowermod.convert.WorldConversionEventHandler in project BluePower by Qmunity.
the class BluePower method preInit.
@EventHandler
public void preInit(FMLPreInitializationEvent event) {
event.getModMetadata().version = Refs.fullVersionString();
log = event.getModLog();
config = new Configuration(event.getSuggestedConfigurationFile());
BPApi.init(new BluePowerAPI());
// Load configs
Config.syncConfig(config);
BPEnchantments.init();
CompatibilityUtils.preInit(event);
FMLCommonHandler.instance().bus().register(new Config());
BPEventHandler eventHandler = new BPEventHandler();
MinecraftForge.EVENT_BUS.register(eventHandler);
FMLCommonHandler.instance().bus().register(eventHandler);
MinecraftForge.EVENT_BUS.register(new WorldConversionEventHandler());
RedstoneApi.getInstance().registerRedstoneProvider(new RedstoneProviderQmunityLib());
}
Aggregations