API Synced with Grinder canges.

This commit is contained in:
AlgorithmX2
2014-07-20 01:50:50 -05:00
parent af3a9f29b6
commit fdc263702e
3 changed files with 54 additions and 1 deletions
@@ -12,6 +12,9 @@ public class AppEngGrinderRecipe implements IGrinderEntry
private float optionalChance;
private ItemStack optionalOutput;
private float optionalChance2;
private ItemStack optionalOutput2;
private int energy;
public AppEngGrinderRecipe(ItemStack a, ItemStack b, int cost) {
@@ -30,6 +33,19 @@ public class AppEngGrinderRecipe implements IGrinderEntry
energy = cost;
}
public AppEngGrinderRecipe(ItemStack a, ItemStack b, ItemStack c, ItemStack d, float chance, float chance2, int cost) {
in = a;
out = b;
optionalOutput = c;
optionalChance = chance;
optionalOutput2 = d;
optionalChance2 = chance2;
energy = cost;
}
@Override
public ItemStack getInput()
{
@@ -75,7 +91,7 @@ public class AppEngGrinderRecipe implements IGrinderEntry
@Override
public void setOptionalOutput(ItemStack output, float chance)
{
optionalOutput = output;
optionalOutput = output.copy();
optionalChance = chance;
}
@@ -85,4 +101,23 @@ public class AppEngGrinderRecipe implements IGrinderEntry
return optionalChance;
}
@Override
public ItemStack getSecondOptionalOutput()
{
return optionalOutput2;
}
@Override
public void setSecondOptionalOutput(ItemStack output, float chance)
{
optionalChance2 = chance;
optionalOutput2 = output.copy();
}
@Override
public float getSecondOptionalChance()
{
return optionalChance2;
}
}