private void addIngotCompressorRecipes()
{
for (int i = 0; i < CompressorRecipes.getRecipeList().size(); i++)
{
HashMap<Integer, PositionedStack> input1 = new HashMap<Integer, PositionedStack>();
IRecipe rec = CompressorRecipes.getRecipeList().get(i);
if (rec instanceof ShapedRecipes)
{
ShapedRecipes recipe = (ShapedRecipes) rec;
for (int j = 0; j < recipe.recipeItems.length; j++)
{
ItemStack stack = recipe.recipeItems[j];
input1.put(j, new PositionedStack(stack, 21 + j % 3 * 18, 26 + j / 3 * 18));
}
}
else if (rec instanceof ShapelessOreRecipe)
{
ShapelessOreRecipe recipe = (ShapelessOreRecipe) rec;
for (int j = 0; j < recipe.getInput().size(); j++)
{
Object obj = recipe.getInput().get(j);
input1.put(j, new PositionedStack(obj, 21 + j % 3 * 18, 26 + j / 3 * 18));
}
}
this.registerIngotCompressorRecipe(input1, new PositionedStack(rec.getRecipeOutput(), 140, 46));
}
}