package appeng.recipes.handlers; import java.util.List; import net.minecraft.item.ItemStack; import net.minecraftforge.oredict.OreDictionary; import appeng.api.exceptions.MissingIngredientError; import appeng.api.exceptions.RecipeError; import appeng.api.exceptions.RegistrationError; import appeng.api.recipes.ICraftHandler; import appeng.api.recipes.IIngredient; public class OreRegistration implements ICraftHandler { List inputs; String name; public OreRegistration(List in, String out) { inputs = in; name = out; } @Override public void register() throws RegistrationError, MissingIngredientError { for (IIngredient i : inputs) { for (ItemStack is : i.getItemStackSet()) { OreDictionary.registerOre( name, is ); } } } @Override public void setup(List> input, List> output) throws RecipeError { } }