Search in sources :

Example 1 with ForgeEventHandlers

use of mcjty.rftoolscontrol.ForgeEventHandlers in project RFToolsControl by McJty.

the class CommonProxy method preInit.

public void preInit(FMLPreInitializationEvent e) {
    MinecraftForge.EVENT_BUS.register(new ForgeEventHandlers());
    McJtyLib.preInit(e);
    CommandHandler.registerCommands();
    GeneralConfig.preInit(e);
    modConfigDir = e.getModConfigurationDirectory();
    mainConfig = new Configuration(new File(modConfigDir.getPath() + File.separator + "rftools", "control.cfg"));
    readMainConfig();
    SimpleNetworkWrapper network = PacketHandler.registerMessages(RFToolsControl.MODID, "rftoolsctrl");
    RFToolsCtrlMessages.registerNetworkMessages(network);
    Opcodes.init();
    Functions.init();
    ModBlocks.init();
    ModItems.init();
// if (RFToolsControl.mcmpPresent) {
// MCMPSetup.init();
// }
}
Also used : SimpleNetworkWrapper(net.minecraftforge.fml.common.network.simpleimpl.SimpleNetworkWrapper) GeneralConfiguration(mcjty.rftoolscontrol.config.GeneralConfiguration) Configuration(net.minecraftforge.common.config.Configuration) ForgeEventHandlers(mcjty.rftoolscontrol.ForgeEventHandlers) File(java.io.File)

Aggregations

File (java.io.File)1 ForgeEventHandlers (mcjty.rftoolscontrol.ForgeEventHandlers)1 GeneralConfiguration (mcjty.rftoolscontrol.config.GeneralConfiguration)1 Configuration (net.minecraftforge.common.config.Configuration)1 SimpleNetworkWrapper (net.minecraftforge.fml.common.network.simpleimpl.SimpleNetworkWrapper)1