2014-07-21 03:32:23 +02:00
|
|
|
package com.pahimar.ee3.api;
|
|
|
|
|
|
|
|
import com.pahimar.ee3.EquivalentExchange3;
|
|
|
|
import cpw.mods.fml.common.Mod;
|
|
|
|
|
2014-07-22 21:56:39 +02:00
|
|
|
import java.util.List;
|
|
|
|
|
2014-07-31 14:37:20 +02:00
|
|
|
public final class RecipeRegistryProxy
|
2014-07-21 03:32:23 +02:00
|
|
|
{
|
2014-07-22 21:56:39 +02:00
|
|
|
public static void addRecipe(Object recipeOutput, List<?> recipeInputList)
|
|
|
|
{
|
|
|
|
init();
|
|
|
|
|
|
|
|
// NOOP if EquivalentExchange3 is not present
|
2015-04-09 18:40:19 +02:00
|
|
|
if (ee3Mod != null)
|
2014-07-22 21:56:39 +02:00
|
|
|
{
|
2015-04-09 18:40:19 +02:00
|
|
|
EE3Wrapper.ee3mod.getRecipeRegistry().addRecipe(recipeOutput, recipeInputList);
|
2014-07-22 21:56:39 +02:00
|
|
|
}
|
2015-04-09 18:40:19 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
public static void dumpRecipeRegistryToLog()
|
|
|
|
{
|
|
|
|
init();
|
2014-07-22 21:56:39 +02:00
|
|
|
|
2015-04-09 18:40:19 +02:00
|
|
|
// NOOP if EquivalentExchange3 is not present
|
|
|
|
if (ee3Mod != null)
|
|
|
|
{
|
|
|
|
EE3Wrapper.ee3mod.getRecipeRegistry().dumpRecipeRegistryToLog();
|
|
|
|
}
|
2014-07-22 21:56:39 +02:00
|
|
|
}
|
|
|
|
|
2014-07-21 03:32:23 +02:00
|
|
|
@Mod.Instance("EE3")
|
|
|
|
private static Object ee3Mod;
|
|
|
|
|
|
|
|
private static class EE3Wrapper
|
|
|
|
{
|
|
|
|
private static EquivalentExchange3 ee3mod;
|
|
|
|
}
|
|
|
|
|
|
|
|
private static void init()
|
|
|
|
{
|
|
|
|
if (ee3Mod != null)
|
|
|
|
{
|
|
|
|
EE3Wrapper.ee3mod = (EquivalentExchange3) ee3Mod;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|