Added Basic Quartz and Tool Recipes.

Added Custom Recipes.
This commit is contained in:
AlgorithmX2
2014-02-10 23:51:25 -06:00
parent 077572acc9
commit 08e6a656b8
14 changed files with 879 additions and 95 deletions
+33
View File
@@ -0,0 +1,33 @@
package appeng.recipes.handlers;
import java.util.List;
import net.minecraft.item.ItemStack;
import net.minecraftforge.oredict.OreDictionary;
import appeng.recipes.Ingredient;
import appeng.recipes.MissingIngredientError;
import appeng.recipes.RegistrationError;
public class OreRegistration extends CraftHandler
{
List<Ingredient> inputs;
String name;
public OreRegistration(List<Ingredient> in, String out) {
inputs = in;
name = out;
}
@Override
public void register() throws RegistrationError, MissingIngredientError
{
for (Ingredient i : inputs)
{
for (ItemStack is : i.getSet())
{
OreDictionary.registerOre( name, is );
}
}
}
}