public MillRecipe(ItemStack targetedResult, int energy, RecipeInput ingredient, RecipeOutput[] outputs) {
this.energy = energy;
input = new ArrayList<PositionedStack>(2);
input.add(new PositionedStack(getInputs(ingredient), 74, 2));
input.add(new PositionedStack(getBalls(), 116, 12));
output = new PositionedStack(outputs[0].getOutput(), 43, 46);
otherOutputs = new ArrayList<PositionedStack>();
if(outputs.length > 1) {
otherOutputs.add(new PositionedStack(outputs[1].getOutput(), 64, 46));
}
if(outputs.length > 2) {
otherOutputs.add(new PositionedStack(outputs[2].getOutput(), 85, 46));
}
if(outputs.length > 3) {
otherOutputs.add(new PositionedStack(outputs[3].getOutput(), 106, 46));
}
outputChance = new float[outputs.length];
indexOfTargetOutput = 0;
numTargetOuput = 1;