Added basic ee3 support for all machines, will not work right when it has two outputs
This commit is contained in:
parent
309321dbdc
commit
9075692951
4 changed files with 23 additions and 7 deletions
|
@ -1,5 +1,6 @@
|
|||
package techreborn.compat;
|
||||
|
||||
import cpw.mods.fml.common.event.FMLPostInitializationEvent;
|
||||
import techreborn.compat.ee3.EmcValues;
|
||||
import techreborn.compat.waila.CompatModuleWaila;
|
||||
import techreborn.init.ModParts;
|
||||
|
@ -21,10 +22,13 @@ public class CompatManager {
|
|||
// Register Multiparts
|
||||
ModParts.init();
|
||||
}
|
||||
if(Loader.isModLoaded("EE3"))
|
||||
{
|
||||
// Register Emc Values
|
||||
EmcValues.init();
|
||||
}
|
||||
}
|
||||
|
||||
public static void postInit(FMLPostInitializationEvent event){
|
||||
if(Loader.isModLoaded("EE3"))
|
||||
{
|
||||
// Register Emc Values and machine crafting handlers
|
||||
EmcValues.init();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,10 +1,20 @@
|
|||
package techreborn.compat.ee3;
|
||||
|
||||
import com.pahimar.ee3.api.exchange.RecipeRegistryProxy;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import techreborn.api.recipe.IBaseRecipeType;
|
||||
import techreborn.api.recipe.RecipeHanderer;
|
||||
|
||||
public class EmcValues {
|
||||
|
||||
public static void init()
|
||||
{
|
||||
//TODO
|
||||
for(IBaseRecipeType recipeType : RecipeHanderer.recipeList){
|
||||
for(ItemStack output : recipeType.getOutputs()){
|
||||
//TODO this does not handle multi outputs
|
||||
RecipeRegistryProxy.addRecipe(output, recipeType.getInputs());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue