}
}
int[] hits = new int[]{recipeIndex};
int program = ItemAssemblyProgram.DRILL_LASER_DAMAGE;
AssemblyRecipe foundRecipe = findRecipe(hits, AssemblyRecipe.drillRecipes, arguments[2]);
if(foundRecipe == null) {
foundRecipe = findRecipe(hits, AssemblyRecipe.laserRecipes, arguments[2]);
} else {
program = ItemAssemblyProgram.DRILL_DAMAGE;
}
if(foundRecipe == null) {
foundRecipe = findRecipe(hits, AssemblyRecipe.drillLaserRecipes, arguments[2]);
} else {
program = ItemAssemblyProgram.LASER_DAMAGE;
}
if(foundRecipe == null) throw new IllegalArgumentException("No recipe found for the string " + arguments[2] + " and the requested index " + recipeIndex + ".");
locatedStacks.add(new LocatedStack(foundRecipe.getInput(), (int)(GuiWiki.TEXT_SCALE * x) + 1, (int)(GuiWiki.TEXT_SCALE * y) + 46));
locatedStacks.add(new LocatedStack(foundRecipe.getOutput(), (int)(GuiWiki.TEXT_SCALE * x) + 68, (int)(GuiWiki.TEXT_SCALE * y) + 46));
locatedStacks.add(new LocatedStack(new ItemStack(Itemss.assemblyProgram, 1, program), (int)(GuiWiki.TEXT_SCALE * x) + 78, (int)(GuiWiki.TEXT_SCALE * y) + 15));
locatedStrings.add(new LocatedString("Program:", x + 150, y + 5, 0xFF000000, false));
locatedStrings.add(new LocatedString("Assembly Line", x + 40, y + 30, 0xFF000000, false));
}