Added compat for buildcraft (WIP)
This commit is contained in:
parent
ce581cd27a
commit
dc4bd2724e
5 changed files with 55 additions and 3 deletions
|
@ -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
|
||||
|
@ -61,4 +64,10 @@ public class Core {
|
|||
LogHelper.info("Initialization Compleate");
|
||||
}
|
||||
|
||||
@Mod.EventHandler
|
||||
public void postinit(FMLPostInitializationEvent event)
|
||||
{
|
||||
RecipeManager.init();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
16
src/main/java/techreborn/compat/recipes/RecipeManager.java
Normal file
16
src/main/java/techreborn/compat/recipes/RecipeManager.java
Normal 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();
|
||||
}
|
||||
}
|
||||
}
|
|
@ -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()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
}
|
|
@ -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
|
||||
|
Loading…
Reference in a new issue