use of ivorius.reccomplex.files.loading.FileLoader in project RecurrentComplex by Ivorforce.
the class RecurrentComplex method preInit.
@EventHandler
public void preInit(FMLPreInitializationEvent event) {
logger = event.getModLog();
config = new Configuration(event.getSuggestedConfigurationFile());
config.load();
RCConfig.loadConfig(null);
config.save();
// After loading config, re-test vanilla acceptance, because of lightweight mode
NetworkRegistry.INSTANCE.registry().get(Loader.instance().getIndexedModList().get(MOD_ID)).testVanillaAcceptance();
logger.trace(isLite() ? "Entering lightweight mode!" : "Entering default mode!");
loader = new FileLoader();
saver = new FileSaver();
remapper = new FMLRemapper();
specialRegistry = new MCRegistrySpecial(mcRegistry = new MCRegistryRemapping(new MCRegistryDefault(), remapper), remapper);
cremapper = new FMLRemapperConvenience(MOD_ID, specialRegistry, remapper);
missingRemapper = new FMLMissingRemapper(new MCRegistryDefault(), remapper);
forgeEventHandler = new RCForgeEventHandler();
forgeEventHandler.register();
terrainEventHandler = new RCTerrainGenEventHandler();
terrainEventHandler.register();
recurrentComplexEventHandler = new RCRecurrentComplexEventHandler();
recurrentComplexEventHandler.register();
guiHandler = new RCGuiHandler();
IvGuiRegistry.INSTANCE.register(MOD_ID, guiHandler);
communicationHandler = new RCCommunicationHandler(logger, MOD_ID, instance);
RCRegistryHandler.preInit(event, this);
proxy.preInit(event);
// Needs to be called during preInit now
proxy.registerRenderers();
}
Aggregations