Added compat for buildcraft (WIP)

This commit is contained in:
Gig 2015-04-17 19:39:14 +01:00
parent ce581cd27a
commit dc4bd2724e
5 changed files with 55 additions and 3 deletions

View file

@ -2,6 +2,7 @@ package techreborn;
import cpw.mods.fml.common.Mod;
import cpw.mods.fml.common.event.FMLInitializationEvent;
import cpw.mods.fml.common.event.FMLPostInitializationEvent;
import cpw.mods.fml.common.event.FMLPreInitializationEvent;
import cpw.mods.fml.common.network.NetworkRegistry;
import cpw.mods.fml.common.registry.GameRegistry;
@ -9,6 +10,7 @@ import net.minecraftforge.common.MinecraftForge;
import techreborn.achievement.TRAchievements;
import techreborn.client.GuiHandler;
import techreborn.compat.CompatManager;
import techreborn.compat.recipes.RecipeManager;
import techreborn.config.ConfigTechReborn;
import techreborn.event.MultiblockEvent;
import techreborn.init.ModBlocks;
@ -46,6 +48,7 @@ public class Core {
ModItems.init();
// Recipes
ModRecipes.init();
//Compat
CompatManager.init(event);
// WorldGen
@ -60,5 +63,11 @@ public class Core {
TRAchievements.init();
LogHelper.info("Initialization Compleate");
}
@Mod.EventHandler
public void postinit(FMLPostInitializationEvent event)
{
RecipeManager.init();
}
}

View file

@ -6,8 +6,10 @@ import techreborn.compat.waila.CompatModuleWaila;
public class CompatManager {
public static void init(FMLInitializationEvent event) {
if (Loader.isModLoaded("Waila")) {
public static void init(FMLInitializationEvent event)
{
if (Loader.isModLoaded("Waila"))
{
new CompatModuleWaila().init(event);
}
}

View file

@ -0,0 +1,16 @@
package techreborn.compat.recipes;
import techreborn.compat.waila.CompatModuleWaila;
import cpw.mods.fml.common.Loader;
import cpw.mods.fml.common.event.FMLInitializationEvent;
public class RecipeManager {
public static void init()
{
if (Loader.isModLoaded("BuildCraft|Factory"))
{
RecipesBuildcraft.init();
}
}
}

View file

@ -0,0 +1,25 @@
package techreborn.compat.recipes;
import net.minecraft.item.ItemStack;
import buildcraft.BuildCraftFactory;
import techreborn.util.RecipeRemover;
public class RecipesBuildcraft {
public static void init()
{
removeRecipes();
addRecipies();
}
public static void removeRecipes()
{
RecipeRemover.removeAnyRecipe(new ItemStack(BuildCraftFactory.quarryBlock));
}
public static void addRecipies()
{
}
}

View file

@ -1,6 +1,6 @@
package techreborn.compat.recipes;
public class ThermalExpansion {
public class RecipesThermalExpansion {
//TODO remove basic machine frame recipe
//TODO replace iron in recipe to steel