Ripped out poor integration for BC pumps. Closes #24

This commit is contained in:
Adubbz 2013-07-30 19:30:24 +10:00
parent 63f6b85f0a
commit da1a2233bb
2 changed files with 0 additions and 36 deletions

View file

@ -1,10 +1,7 @@
package biomesoplenty.integration; package biomesoplenty.integration;
import java.lang.reflect.Method;
import biomesoplenty.api.Biomes; import biomesoplenty.api.Biomes;
import biomesoplenty.api.BlockReferences; import biomesoplenty.api.BlockReferences;
import biomesoplenty.api.Fluids;
import cpw.mods.fml.common.event.FMLInterModComms; import cpw.mods.fml.common.event.FMLInterModComms;
public class BCIntegration { public class BCIntegration {
@ -15,11 +12,6 @@ public class BCIntegration {
excludeOilGeneration(); excludeOilGeneration();
} }
public static void postInit()
{
addLiquids();
}
private static void excludeOilGeneration() private static void excludeOilGeneration()
{ {
FMLInterModComms.sendMessage("BuildCraft|Energy", "oil-gen-exclude", Integer.toString(Biomes.promisedLandForest.get().biomeID)); FMLInterModComms.sendMessage("BuildCraft|Energy", "oil-gen-exclude", Integer.toString(Biomes.promisedLandForest.get().biomeID));
@ -88,23 +80,6 @@ public class BCIntegration {
FMLInterModComms.sendMessage("BuildCraft|Transport", "add-facade", getBID("giantFlowerRed") + "@" + getBMeta("giantFlowerRed")); FMLInterModComms.sendMessage("BuildCraft|Transport", "add-facade", getBID("giantFlowerRed") + "@" + getBMeta("giantFlowerRed"));
FMLInterModComms.sendMessage("BuildCraft|Transport", "add-facade", getBID("giantFlowerYellow") + "@" + getBMeta("giantFlowerYellow")); FMLInterModComms.sendMessage("BuildCraft|Transport", "add-facade", getBID("giantFlowerYellow") + "@" + getBMeta("giantFlowerYellow"));
} }
private static void addLiquids()
{
try
{
Class bcUtils = Class.forName("buildcraft.core.utils.Utils");
Method method = bcUtils.getMethod("liquidId", int.class);
method.invoke(bcUtils, Fluids.springWaterFluid.get().getBlockID());
method.invoke(bcUtils, Fluids.liquidPoisonFluid.get().getBlockID());
}
catch (Exception e)
{
e.printStackTrace();
}
}
private static int getBID(String name) { private static int getBID(String name) {
return BlockReferences.getBlockID(name); return BlockReferences.getBlockID(name);

View file

@ -46,17 +46,6 @@ public class BOPCrossIntegration {
public static void postInit() 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")) if (Loader.isModLoaded("Thaumcraft"))
{ {
try { try {