BiomesOPlenty/src/minecraft/biomesoplenty/integration/BOPCrossIntegration.java

112 lines
2.8 KiB
Java
Raw Normal View History

2013-05-03 13:00:44 +00:00
package biomesoplenty.integration;
import cpw.mods.fml.common.Loader;
public class BOPCrossIntegration {
2013-05-31 10:34:02 +00:00
2013-05-03 13:00:44 +00:00
public static void init()
{
if (Loader.isModLoaded("BuildCraft|Transport"))
{
try {
BCIntegration.init();
}
catch (Exception e) {
System.out.println("[BiomesOPlenty] There was an error while integrating BuildCraft|Transport with Biomes O' Plenty!");
e.printStackTrace(System.err);
}
}
2013-05-31 10:34:02 +00:00
2013-05-03 13:00:44 +00:00
if (Loader.isModLoaded("Thaumcraft"))
{
try {
ThaumcraftIntegration.init();
2013-06-04 20:21:06 +00:00
}
catch (Exception e) {
System.out.println("[BiomesOPlenty] There was an error while integrating Thaumcraft with Biomes O' Plenty!");
e.printStackTrace(System.err);
}
}
2013-06-05 05:15:15 +00:00
if (Loader.isModLoaded("TreeCapitator"))
{
try {
TreeCapitatorIntegration.init();
}
catch (Exception e) {
System.out.println("[BiomesOPlenty] There was an error while integrating TreeCapitator with Biomes O' Plenty!");
e.printStackTrace(System.err);
}
}
2013-06-04 20:21:06 +00:00
}
public static void postInit()
{
if (Loader.isModLoaded("BuildCraft|Transport"))
{
try {
BCIntegration.postInit();
}
catch (Exception e) {
System.out.println("[BiomesOPlenty] There was an error while integrating BuildCraft|Transport with Biomes O' Plenty!");
e.printStackTrace(System.err);
}
}
if (Loader.isModLoaded("Thaumcraft"))
{
try {
ThaumcraftIntegration.postInit();
2013-05-03 13:00:44 +00:00
}
catch (Exception e) {
System.out.println("[BiomesOPlenty] There was an error while integrating Thaumcraft with Biomes O' Plenty!");
e.printStackTrace(System.err);
}
}
if (Loader.isModLoaded("BWG4"))
{
try {
BWG4Integration.init();
}
catch (Exception e) {
System.out.println("[BiomesOPlenty] There was an error while integrating Better World Generation 4 with Biomes O' Plenty!");
e.printStackTrace(System.err);
}
}
2013-05-31 10:34:02 +00:00
2013-05-03 13:00:44 +00:00
if (Loader.isModLoaded("Forestry"))
{
try {
ForestryIntegration.init();
}
catch (Exception e) {
System.out.println("[BiomesOPlenty] There was an error while integrating Forestry with Biomes O' Plenty!");
e.printStackTrace(System.err);
}
}
2013-05-31 10:34:02 +00:00
2013-05-03 13:00:44 +00:00
if (Loader.isModLoaded("ThermalExpansion"))
{
try {
TEIntegration.init();
}
catch (Exception e) {
System.out.println("[BiomesOPlenty] There was an error while integrating Thermal Expansion with Biomes O' Plenty!");
e.printStackTrace(System.err);
}
}
if (Loader.isModLoaded("MineFactoryReloaded"))
{
try {
MFRIntegration.init();
}
catch (Exception e) {
System.out.println("[BiomesOPlenty] There was an error while integrating MineFactory Reloaded with Biomes O' Plenty!");
e.printStackTrace(System.err);
}
}
2013-05-03 13:00:44 +00:00
}
}