cpw.mods.fml.common.event.FMLInterModComms Java Examples

The following examples show how to use cpw.mods.fml.common.event.FMLInterModComms. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: Extracells.java    From ExtraCells1 with MIT License 6 votes vote down vote up
@EventHandler
public void init(FMLInitializationEvent event)
{
	proxy.RegisterItems();
	proxy.RegisterBlocks();
	proxy.RegisterRenderers();
	proxy.RegisterTileEntities();
	proxy.addRecipes();
	if (!debug)
		Util.addBasicBlackList(ItemEnum.FLUIDDISPLAY.getItemInstance().itemID, OreDictionary.WILDCARD_VALUE);
	Util.getCellRegistry().addCellHandler(new FluidCellHandler());
	LanguageRegistry.instance().addStringLocalization("itemGroup.Extra_Cells", "en_US", "Extra Cells");
	renderID = RenderingRegistry.getNextAvailableRenderId();
	RenderHandler handler = new RenderHandler(renderID);
	RenderingRegistry.registerBlockHandler(handler);

	// WAILA Support
	FMLInterModComms.sendMessage("Waila", "register", "extracells.integration.WAILA.WailaDataProvider.callbackRegister");

	
	// AE Spatial Storage Support
	proxy.registerMovables();
}
 
Example #2
Source File: OpenPeripheralCore.java    From OpenPeripheral with MIT License 6 votes vote down vote up
@EventHandler
public void processMessage(FMLInterModComms.IMCEvent event) {
	for (FMLInterModComms.IMCMessage m : event.getMessages()) {
		if (m.isStringMessage()) {
			if (Constants.IMC_IGNORE.equalsIgnoreCase(m.key)) {
				TileEntityBlacklist.INSTANCE.addToBlacklist(m.getStringValue());
			} else if (Constants.IMC_NAME_CLASS.equalsIgnoreCase(m.key)) {
				String value = m.getStringValue();
				String[] fields = value.split("\\s+");
				if (fields.length != 2) {
					Log.warn("Invalid IMC from %s: can't decode type '%s'", m.getSender(), value);
				} else {
					PeripheralTypeProvider.INSTANCE.setType(fields[0], fields[1]);
				}
			}
		}
	}
}
 
Example #3
Source File: OpenPeripheralCore.java    From OpenPeripheral with MIT License 6 votes vote down vote up
@Mod.EventHandler
public void preInit(FMLPreInitializationEvent evt) {
	apiSetup.installHolderAccess(evt.getAsmData());
	PeripheralTypeProvider.INSTANCE.initialize(evt.getModConfigurationDirectory());

	final File configFile = evt.getSuggestedConfigurationFile();
	config = new Configuration(configFile);
	ConfigProcessing.processAnnotations(ModInfo.ID, config, Config.class);
	if (config.hasChanged()) config.save();

	FeatureGroupManager.INSTANCE.loadBlacklist(Config.featureGroupsBlacklist);
	FMLCommonHandler.instance().bus().register(new ConfigGuiFactory.ConfigChangeListener(config));

	MinecraftForge.EVENT_BUS.register(TileEntityBlacklist.INSTANCE);

	FMLInterModComms.sendMessage(Mods.OPENCOMPUTERS, "blacklistPeripheral", IOpenPeripheral.class.getName());

	TypeClassifier.INSTANCE.registerClassifier(new MinecraftTypeClassifier());

	FeatureGroupManager.INSTANCE.loadFeatureGroupsFromAnnotations(evt.getAsmData());
}
 
Example #4
Source File: FactoryRegistry.java    From BigReactors with MIT License 6 votes vote down vote up
public static void sendMessage(String message, Object value)
{
	if (!Loader.isModLoaded("MineFactoryReloaded") ||
			Loader.instance().activeModContainer() == null)
		return;
	try
	{
		Method m = FMLInterModComms.class.getDeclaredMethod("enqueueMessage", Object.class, String.class, IMCMessage.class);
		m.setAccessible(true);
		Constructor<IMCMessage> c = IMCMessage.class.getDeclaredConstructor(String.class, Object.class);
		c.setAccessible(true);
		m.invoke(null, Loader.instance().activeModContainer(), "MineFactoryReloaded", c.newInstance(message, value));
	}
	catch(Exception e)
	{
		e.printStackTrace();
	}
}
 
Example #5
Source File: CommonProxy.java    From BigReactors with MIT License 6 votes vote down vote up
public void init() {
	BigReactors.registerTileEntities();
	
	CommonPacketHandler.init();

	NetworkRegistry.INSTANCE.registerGuiHandler(BRLoader.instance, new BigReactorsGUIHandler());
	BigReactors.tickHandler = new BigReactorsTickHandler();
	FMLCommonHandler.instance().bus().register(BigReactors.tickHandler);
       FMLCommonHandler.instance().bus().register(new MultiblockServerTickHandler());
	
	sendInterModAPIMessages();

	if(Loader.isModLoaded("VersionChecker")) {
		FMLInterModComms.sendRuntimeMessage(BRLoader.MOD_ID, "VersionChecker", "addVersionCheck", "http://big-reactors.com/version.json");
	}
}
 
Example #6
Source File: AdvancedMod.java    From AdvancedMod with GNU General Public License v3.0 6 votes vote down vote up
@Mod.EventHandler
public void preInit(FMLPreInitializationEvent event){
    ModBlocks.init();
    ModTileEntities.init();
    proxy.preInit();
    GameRegistry.registerWorldGenerator(new WorldGeneratorFlag(), 0);
    NetworkHandler.init();
    DescriptionHandler.init();
    NetworkRegistry.INSTANCE.registerGuiHandler(instance, new GuiHandler());
    MinecraftForge.EVENT_BUS.register(new AdvancedModEventHandler());//For registering events from the net.miencraftforge.event package.
    FMLCommonHandler.instance().bus().register(new AdvancedModEventHandler());//For registering events from the cpw.mods.fml.gameevent package.
    FMLInterModComms.sendMessage(Reference.MOD_ID, "camoMineBlacklist", new ItemStack(Blocks.stone));
    FMLInterModComms.sendMessage("Waila", "register", "com.minemaarten.advancedmod.thirdparty.waila.Waila.onWailaCall");
    Log.info("Pre Initialization Complete!");

    if(Loader.isModLoaded("Thaumcraft")) {
        loadThaumcraft();
    }
}
 
Example #7
Source File: Chisel.java    From Chisel-2 with GNU General Public License v2.0 6 votes vote down vote up
@EventHandler
public void init(FMLInitializationEvent event) {
	Features.init();

	NetworkRegistry.INSTANCE.registerGuiHandler(this, new ChiselGuiHandler());

	addWorldgen(Features.MARBLE, ChiselBlocks.marble, Configurations.marbleAmount);
	addWorldgen(Features.LIMESTONE, ChiselBlocks.limestone, Configurations.limestoneAmount);
	addWorldgen(Features.ANDESITE, ChiselBlocks.andesite, Configurations.andesiteAmount, 40, 100, 0.5);
	addWorldgen(Features.GRANITE, ChiselBlocks.granite, Configurations.graniteAmount, 40, 100, 0.5);
	addWorldgen(Features.DIORITE, ChiselBlocks.diorite, Configurations.dioriteAmount, 40, 100, 0.5);
	GameRegistry.registerWorldGenerator(GeneratorChisel.INSTANCE, 1000);

       EntityRegistry.registerModEntity(EntityChiselSnowman.class, "snowman", 0, this, 80, 1, true);

	proxy.init();
	MinecraftForge.EVENT_BUS.register(this);
	FMLCommonHandler.instance().bus().register(instance);

	FMLInterModComms.sendMessage("Waila", "register", "com.cricketcraft.chisel.compat.WailaCompat.register");
}
 
Example #8
Source File: FactoryRegistry.java    From PneumaticCraft with GNU General Public License v3.0 6 votes vote down vote up
public static void sendMessage(String message, Object value)
{
	if (!Loader.isModLoaded("MineFactoryReloaded") ||
			Loader.instance().activeModContainer() == null)
		return;
	try
	{
		Method m = FMLInterModComms.class.getDeclaredMethod("enqueueMessage", Object.class, String.class, IMCMessage.class);
		m.setAccessible(true);
		Constructor<IMCMessage> c = IMCMessage.class.getDeclaredConstructor(String.class, Object.class);
		c.setAccessible(true);
		m.invoke(null, Loader.instance().activeModContainer(), "MineFactoryReloaded", c.newInstance(message, value));
	}
	catch(Exception e)
	{
		e.printStackTrace();
	}
}
 
Example #9
Source File: TERecipes.java    From SimplyJetpacks with MIT License 6 votes vote down vote up
public static void addSmelterRecipe(int energy, ItemStack primaryInput, ItemStack secondaryInput, ItemStack primaryOutput, ItemStack secondaryOutput, int secondaryChance) {
    SimplyJetpacks.logger.info("Registering TE Induction Smelter recipe");
    
    NBTTagCompound toSend = new NBTTagCompound();
    
    toSend.setInteger("energy", energy);
    toSend.setTag("primaryInput", new NBTTagCompound());
    toSend.setTag("secondaryInput", new NBTTagCompound());
    toSend.setTag("primaryOutput", new NBTTagCompound());
    toSend.setTag("secondaryOutput", new NBTTagCompound());
    
    primaryInput.writeToNBT(toSend.getCompoundTag("primaryInput"));
    secondaryInput.writeToNBT(toSend.getCompoundTag("secondaryInput"));
    primaryOutput.writeToNBT(toSend.getCompoundTag("primaryOutput"));
    if (secondaryOutput != null) {
        secondaryOutput.writeToNBT(toSend.getCompoundTag("secondaryOutput"));
        toSend.setInteger("secondaryChance", secondaryChance);
    }
    
    FMLInterModComms.sendMessage("ThermalExpansion", "SmelterRecipe", toSend);
}
 
Example #10
Source File: TERecipes.java    From SimplyJetpacks with MIT License 6 votes vote down vote up
public static void addTransposerFill(int energy, ItemStack input, ItemStack output, FluidStack fluid, boolean reversible) {
    SimplyJetpacks.logger.info("Registering TE Fluid Transposer fill recipe");
    
    NBTTagCompound toSend = new NBTTagCompound();
    
    toSend.setInteger("energy", energy);
    toSend.setTag("input", new NBTTagCompound());
    toSend.setTag("output", new NBTTagCompound());
    toSend.setTag("fluid", new NBTTagCompound());
    
    input.writeToNBT(toSend.getCompoundTag("input"));
    output.writeToNBT(toSend.getCompoundTag("output"));
    toSend.setBoolean("reversible", reversible);
    fluid.writeToNBT(toSend.getCompoundTag("fluid"));
    
    FMLInterModComms.sendMessage("ThermalExpansion", "TransposerFillRecipe", toSend);
}
 
Example #11
Source File: BW_NEI_BioLabHandler.java    From bartworks with MIT License 5 votes vote down vote up
public BW_NEI_BioLabHandler(GT_Recipe.GT_Recipe_Map aRecipeMap) {
    super(aRecipeMap);
    this.transferRects.add(new TemplateRecipeHandler.RecipeTransferRect(new Rectangle(65, 13, 36, 18), this.getOverlayIdentifier()));
    if (!NEI_BW_Config.sIsAdded) {
        FMLInterModComms.sendRuntimeMessage(GT_Values.GT, "NEIPlugins", "register-crafting-handler", "gregtech@" + this.getRecipeName() + "@" + this.getOverlayIdentifier());
        GuiCraftingRecipe.craftinghandlers.add(this);
        GuiUsageRecipe.usagehandlers.add(this);
    }
}
 
Example #12
Source File: Thaumcraft.java    From PneumaticCraft with GNU General Public License v3.0 5 votes vote down vote up
@Override
public void preInit(){
    for(int i = 0; i < 16; i++) {
        Block plantBlock = ItemPlasticPlants.getPlantBlockIDFromSeed(i);
        if(plantBlock != null) {
            FMLInterModComms.sendMessage(ModIds.THAUMCRAFT, "harvestStandardCrop", new ItemStack(plantBlock, 1, 6));
            FMLInterModComms.sendMessage(ModIds.THAUMCRAFT, "harvestStandardCrop", new ItemStack(plantBlock, 1, 13));
        }
    }
    PneumaticRegistry.getInstance().registerBlockTrackEntry(new BlockTrackEntryThaumcraft());
}
 
Example #13
Source File: Hydraulicraft.java    From PneumaticCraft with GNU General Public License v3.0 5 votes vote down vote up
@Override
public void preInit(){
    FMLInterModComms.sendMessage(ModIds.HC, "pneumaticCraft.common.thirdparty.hydraulicraft.Hydraulicraft", "registrarHandling");
    //pneumaticPump = new BlockPneumaticPump(Material.iron).setCreativeTab(pneumaticCraftTab).setBlockName("pneumaticPump").setHardness(3.0F).setResistance(3.0F);
    //Blockss.registerBlock(pneumaticPump);
    //GameRegistry.registerTileEntity(TileEntityPneumaticPump.class, "pneumaticPump");
    PneumaticRegistry.instance.registerBlockTrackEntry(new BlockTrackEntryHydraulicraft());
}
 
Example #14
Source File: EnderIO.java    From PneumaticCraft with GNU General Public License v3.0 5 votes vote down vote up
private void registerFuel(Fluid fluid, int powerPerCycle, int burnTime){
    NBTTagCompound tag = new NBTTagCompound();
    tag.setString("fluidName", fluid.getName());
    tag.setInteger("powerPerCycle", powerPerCycle);
    tag.setInteger("totalBurnTime", burnTime);
    FMLInterModComms.sendMessage(ModIds.EIO, "fluidFuel:add", tag);
}
 
Example #15
Source File: WailaNBT.java    From wailanbt with MIT License 5 votes vote down vote up
@SideOnly(Side.CLIENT)
@Mod.EventHandler
public void init(@SuppressWarnings("UnusedParameters") FMLInitializationEvent event) {
    FMLInterModComms.sendMessage("Waila", "register", "me.exz.wailanbt.handler.BlockHandler.callbackRegister");
    FMLInterModComms.sendMessage("Waila", "register", "me.exz.wailanbt.handler.EntityHandler.callbackRegister");
    ClientCommandHandler.instance.registerCommand(new CommandReload());
    ClientCommandHandler.instance.registerCommand(new CommandName());
    ClientCommandHandler.instance.registerCommand(new CommandEntity());
    MinecraftForge.EVENT_BUS.register(new ConfigEvent());
}
 
Example #16
Source File: BCRecipes.java    From SimplyJetpacks with MIT License 5 votes vote down vote up
public static void addAssemblyRecipe(String recipeId, int energy, ItemStack[] inputs, ItemStack output) {
    SimplyJetpacks.logger.info("Registering BC Assembly Table recipe");
    
    NBTTagCompound toSend = new NBTTagCompound();
    toSend.setString("id", "simplyjetpacks:" + recipeId);
    toSend.setInteger("energy", energy);
    NBTTagList inputsList = new NBTTagList();
    for (ItemStack stack : inputs) {
        inputsList.appendTag(stack.writeToNBT(new NBTTagCompound()));
    }
    toSend.setTag("input", inputsList);
    toSend.setTag("output", output.writeToNBT(new NBTTagCompound()));
    
    FMLInterModComms.sendMessage("BuildCraft|Core", "add-assembly-recipe", toSend);
}
 
Example #17
Source File: EIORecipes.java    From SimplyJetpacks with MIT License 5 votes vote down vote up
public static void addSoulBinderRecipe(String recipeID, int energy, int xp, String soulTypes, ItemStack input, ItemStack output) {
    SimplyJetpacks.logger.info("Registering EIO Soul Binder recipe");
    
    NBTTagCompound toSend = new NBTTagCompound();
    
    toSend.setString("recipeUID", recipeID);
    toSend.setInteger("requiredEnergyRF", energy);
    toSend.setInteger("requiredXP", xp);
    toSend.setString("entityTypes", soulTypes);
    writeItemStack(toSend, "inputStack", input);
    writeItemStack(toSend, "outputStack", output);
    
    FMLInterModComms.sendMessage("EnderIO", "recipe:soulbinder", toSend);
}
 
Example #18
Source File: EIORecipes.java    From SimplyJetpacks with MIT License 5 votes vote down vote up
public static void addAlloySmelterRecipe(String name, int energy, ItemStack primaryInput, ItemStack secondaryInput, ItemStack tertiaryInput, ItemStack output) {
    SimplyJetpacks.logger.info("Registering EIO Alloy Smelter recipe");
    
    StringBuilder toSend = new StringBuilder();
    
    toSend.append("<recipeGroup name=\"" + SimplyJetpacks.MODID + "\">");
    {
        toSend.append("<recipe name=\"" + name + "\" energyCost=\"" + energy + "\">");
        {
            toSend.append("<input>");
            {
                appendItemStack(toSend, primaryInput);
                appendItemStack(toSend, secondaryInput);
                appendItemStack(toSend, tertiaryInput);
            }
            toSend.append("</input>");
            
            toSend.append("<output>");
            {
                appendItemStack(toSend, output);
            }
            toSend.append("</output>");
        }
        toSend.append("</recipe>");
    }
    toSend.append("</recipeGroup>");
    
    FMLInterModComms.sendMessage("EnderIO", "recipe:alloysmelter", toSend.toString());
}
 
Example #19
Source File: BW_NEI_OreHandler.java    From bartworks with MIT License 5 votes vote down vote up
public BW_NEI_OreHandler() {
        if (!NEI_BW_Config.sIsAdded) {
            FMLInterModComms.sendRuntimeMessage(MainMod.MOD_ID, "NEIPlugins", "register-crafting-handler", MainMod.MOD_ID + "@" + this.getRecipeName() + "@" + this.getOverlayIdentifier());
            GuiCraftingRecipe.craftinghandlers.add(this);
//            GuiUsageRecipe.usagehandlers.add(this);
        }
    }
 
Example #20
Source File: BW_NEI_BioVatHandler.java    From bartworks with MIT License 5 votes vote down vote up
public BW_NEI_BioVatHandler(GT_Recipe.GT_Recipe_Map aRecipeMap) {
    super(aRecipeMap);
    this.transferRects.add(new TemplateRecipeHandler.RecipeTransferRect(new Rectangle(65, 13, 36, 18), this.getOverlayIdentifier()));
    if (!NEI_BW_Config.sIsAdded) {
        FMLInterModComms.sendRuntimeMessage(GT_Values.GT, "NEIPlugins", "register-crafting-handler", "gregtech@" + this.getRecipeName() + "@" + this.getOverlayIdentifier());
        GuiCraftingRecipe.craftinghandlers.add(this);
        GuiUsageRecipe.usagehandlers.add(this);
    }
}
 
Example #21
Source File: TERecipes.java    From SimplyJetpacks with MIT License 4 votes vote down vote up
public static void addSmelterBlastOre(String oreType) {
    NBTTagCompound toSend = new NBTTagCompound();
    toSend.setString("oreType", oreType);
    FMLInterModComms.sendMessage("ThermalExpansion", "SmelterBlastOreType", toSend);
}
 
Example #22
Source File: FMPIMC.java    From Chisel-2 with GNU General Public License v2.0 4 votes vote down vote up
public static void registerFMP(Block block, int meta) {
	FMLInterModComms.sendMessage("ForgeMicroblock", "microMaterial", new ItemStack(block, 1, meta));
}
 
Example #23
Source File: IGWMod.java    From PneumaticCraft with GNU General Public License v3.0 4 votes vote down vote up
@Override
public void clientSide(){
    FMLInterModComms.sendMessage("IGWMod", "pneumaticCraft.common.thirdparty.igwmod.IGWHandler", "init");
}
 
Example #24
Source File: ServerProxy.java    From OmniOcular with Apache License 2.0 4 votes vote down vote up
@Override
public void registerWaila() {
    FMLInterModComms.sendMessage("Waila", "register", "me.exz.omniocular.handler.EntityHandler.callbackRegister");
    FMLInterModComms.sendMessage("Waila", "register", "me.exz.omniocular.handler.TileEntityHandler.callbackRegister");
}
 
Example #25
Source File: Waila.java    From PneumaticCraft with GNU General Public License v3.0 4 votes vote down vote up
@Override
public void init(){
    FMLInterModComms.sendMessage("Waila", "register", "pneumaticCraft.common.thirdparty.waila.Waila.callbackRegister");
}
 
Example #26
Source File: IMCHelper.java    From BigReactors with MIT License 4 votes vote down vote up
protected static void sendInterModMessage(String to, String type, NBTTagCompound message) {
	FMLInterModComms.sendMessage(to, type, message);
}
 
Example #27
Source File: BRLoader.java    From BigReactors with MIT License 4 votes vote down vote up
@EventHandler
public void onIMCEvent(FMLInterModComms.IMCEvent event) {
	// TODO
}
 
Example #28
Source File: ClientProxy.java    From OmniOcular with Apache License 2.0 4 votes vote down vote up
@Override
public void registerWaila() {
    FMLInterModComms.sendMessage("Waila", "register", "me.exz.omniocular.handler.EntityHandler.callbackRegister");
    FMLInterModComms.sendMessage("Waila", "register", "me.exz.omniocular.handler.TileEntityHandler.callbackRegister");
}
 
Example #29
Source File: OpenPeripheralIntegration.java    From OpenPeripheral-Integration with MIT License 4 votes vote down vote up
@EventHandler
public void preInit(FMLPreInitializationEvent evt) {
	config = new Configuration(evt.getSuggestedConfigurationFile());

	if (config.hasCategory("integration")) {
		ConfigCategory integration = config.getCategory("integration");
		config.removeCategory(integration);
	}

	if (checkConfig(config, "vanilla")) Integration.addModule(new ModuleVanilla());
	if (checkConfig(config, "vanilla-inventory")) Integration.addModule(new ModuleVanillaInventory());
	if (checkConfig(config, "vanilla-inventory-manipulation")) Integration.addModule(new ModuleVanillaInventoryManipulation());

	if (checkConfig(config, "cofh-api-energy")) Integration.addModule(new ModuleCofhEnergy());
	if (checkConfig(config, "cofh-api-inventory")) Integration.addModule(new ModuleCofhInventory());
	if (checkConfig(config, "cofh-api-item")) Integration.addModule(new ModuleCofhItem());
	if (checkConfig(config, "cofh-api-tileentity")) Integration.addModule(new ModuleCofhTileEntity());
	if (checkConfig(config, "cofh-api-transport")) Integration.addModule(new ModuleCofhTransport());

	if (checkConfig(config, "buildcraft-api-transport")) Integration.addModule(new ModuleBuildCraftTransport());
	if (checkConfig(config, "buildcraft-api-tilenentity")) Integration.addModule(new ModuleBuildCraftTile());
	if (checkConfig(config, "buildcraft-api-facades")) Integration.addModule(new ModuleBuildCraftFacades());

	if (checkConfig(config, "ic2-mod")) Integration.addModule(new ModuleIC2());
	if (checkConfig(config, "ic2-api")) Integration.addModule(new ModuleIC2Api());

	if (checkConfig(config, "railcraft-mod")) Integration.addModule(new ModuleRailcraft());
	if (checkConfig(config, "railcraft-api-carts")) Integration.addModule(new ModuleRailcraftCarts());
	if (checkConfig(config, "railcraft-api-fuel")) Integration.addModule(new ModuleRailcraftFuel());

	if (checkConfig(config, "thaumcraft-mod")) Integration.addModule(new ModuleThaumcraft());
	if (checkConfig(config, "thaumcraft-api")) Integration.addModule(new ModuleThaumcraftApi());

	if (checkConfig(config, "mfr-mod")) Integration.addModule(new ModuleMinefactoryReloaded());
	if (checkConfig(config, "mfr-mod-storage")) Integration.addModule(new ModuleMinefactoryReloadedStorage());

	if (checkConfig(config, "computercraft-mod")) Integration.addModule(new ModuleComputerCraft());
	if (checkConfig(config, "enderstorage-mod")) Integration.addModule(new ModuleEnderStorage());
	if (checkConfig(config, "forestry-mod")) Integration.addModule(new ModuleForestry());
	if (checkConfig(config, "mystcraft-mod")) {
		if (sameOrNewerVersion(Mods.MYSTCRAFT, "0.11.1.00")) {
			if (sameOrNewerVersion(Mods.MYSTCRAFT, "0.11.6.02")) {
				FMLInterModComms.sendMessage(Mods.MYSTCRAFT, "API", "openperipheral.integration.mystcraft.v2.MystcraftAccess.init");
				Integration.addModule(new ModuleMystcraftV2());
			} else {
				Log.warn("Unsupported Mystcraft version!");
			}
		} else {
			Log.warn("Using old Mystcraft integration, things may explode");
			Integration.addModule(new ModuleMystcraftV1());
		}
	}
	if (checkConfig(config, "thaumcraft-mod")) Integration.addModule(new ModuleThaumcraft());
	if (checkConfig(config, "tmechworks-mod")) Integration.addModule(new ModuleTMechworks());
	if (checkConfig(config, "thermalexpansion-mod")) Integration.addModule(new ModuleThermalExpansion());
	if (checkConfig(config, "ae2-mod")) Integration.addModule(new ModuleAppEng());

	ConfigProcessing.processAnnotations(MOD_ID, config, Config.class);

	FMLCommonHandler.instance().bus().register(new ConfigChangeListener(MOD_ID, config));

	if (config.hasChanged()) config.save();
}
 
Example #30
Source File: Gadomancy.java    From Gadomancy with GNU Lesser General Public License v3.0 4 votes vote down vote up
@Mod.EventHandler
public void init(FMLInitializationEvent event) {
    proxy.initalize();

    FMLInterModComms.sendMessage(Thaumcraft.MODID, "dimensionBlacklist", ModConfig.dimOuterId + ":0");
}