mirror of
https://github.com/GTNewHorizons/EnderIO.git
synced 2026-11-23 21:49:58 +00:00
Massive cleanup up recipes.
This commit is contained in:
1 parent
7798e384ee
commit
ac3000efcc
26 files changed
+192
-427
No files matched your search
@@ -6,11 +6,6 @@ import java.util.List;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraftforge.fluids.FluidStack;
|
||||
import crazypants.enderio.ModObject;
|
||||
import crazypants.enderio.crafting.IEnderIoRecipe;
|
||||
import crazypants.enderio.crafting.IRecipeComponent;
|
||||
import crazypants.enderio.crafting.IRecipeInput;
|
||||
import crazypants.enderio.crafting.IRecipeOutput;
|
||||
import crazypants.enderio.crafting.impl.EnderIoRecipe;
|
||||
import crazypants.enderio.machine.MachineRecipeInput;
|
||||
import crazypants.enderio.machine.recipe.AbstractMachineRecipe;
|
||||
import crazypants.enderio.machine.recipe.IRecipe;
|
||||
@@ -72,34 +67,4 @@ public class VatMachineRecipe extends AbstractMachineRecipe {
|
||||
return new ResultStack[] { new ResultStack(recipe.getFluidOutput(inputs)) };
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<IEnderIoRecipe> getAllRecipes() {
|
||||
List<IEnderIoRecipe> result = new ArrayList<IEnderIoRecipe>();
|
||||
List<IRecipe> recipes = VatRecipeManager.getInstance().getRecipes();
|
||||
for (IRecipe cr : recipes) {
|
||||
List<IRecipeComponent> components = new ArrayList<IRecipeComponent>();
|
||||
for (crazypants.enderio.machine.recipe.RecipeInput ri : cr.getInputs()) {
|
||||
if(ri.getInput() != null) {
|
||||
IRecipeInput input = new crazypants.enderio.crafting.impl.RecipeInput(ri.getInput(), ri.getSlotNumber(), ri.getEquivelentInputs());
|
||||
components.add(input);
|
||||
} else if(ri.getFluidInput() != null) {
|
||||
IRecipeInput input = new crazypants.enderio.crafting.impl.RecipeInput(ri.getFluidInput(), 0);
|
||||
components.add(input);
|
||||
}
|
||||
}
|
||||
|
||||
for (crazypants.enderio.machine.recipe.RecipeOutput co : cr.getOutputs()) {
|
||||
if(co.isFluid()) {
|
||||
IRecipeOutput output = new crazypants.enderio.crafting.impl.RecipeOutput(co.getFluidOutput(), -1);
|
||||
components.add(output);
|
||||
} else {
|
||||
IRecipeOutput output = new crazypants.enderio.crafting.impl.RecipeOutput(co.getOutput(), co.getChance());
|
||||
components.add(output);
|
||||
}
|
||||
}
|
||||
result.add(new EnderIoRecipe(IEnderIoRecipe.VAT_ID, cr.getEnergyRequired(), components));
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user