allow SAG-Mill recipes to disable main output bonus per recipe

This commit is contained in:
Matthias Mann committed 2014-12-30 23:19:26 +01:00
1 parent a75bcd1855
commit ff0d28df4a
21 files changed
+162 -22

No files matched your search

@@ -9,6 +9,7 @@ import net.minecraft.item.ItemStack;
import net.minecraftforge.fluids.FluidStack;
import crazypants.enderio.ModObject;
import crazypants.enderio.machine.MachineRecipeInput;
import crazypants.enderio.machine.recipe.RecipeBonusType;
public class BasicManyToOneRecipe implements IManyToOneRecipe {
@@ -17,6 +18,8 @@ public class BasicManyToOneRecipe implements IManyToOneRecipe {
private final float expPerItem;
private final RecipeBonusType bonusType;
private final Recipe recipe;
public BasicManyToOneRecipe(Recipe recipe) {
@@ -24,6 +27,7 @@ public class BasicManyToOneRecipe implements IManyToOneRecipe {
this.output = recipe.getOutputs()[0].getOutput().copy();
expPerItem = recipe.getOutputs()[0].getExperiance();
energyRequired = recipe.getEnergyRequired();
bonusType = recipe.getBonusType();
}
@Override
@@ -77,6 +81,11 @@ public class BasicManyToOneRecipe implements IManyToOneRecipe {
return energyRequired;
}
@Override
public RecipeBonusType getBonusType() {
return bonusType;
}
@Override
public RecipeOutput[] getOutputs() {
return recipe.getOutputs();