package net.shadowfacts.enfusion.recipes;

import net.shadowfacts.enfusion.block.EFBlocks;
import net.shadowfacts.enfusion.item.EFItems;
import net.shadowfacts.enfusion.machine.grinder.recipe.GrinderOutput;
import net.shadowfacts.enfusion.machine.grinder.recipe.GrinderRecipe;
import net.shadowfacts.enfusion.machine.grinder.recipe.GrinderRecipeRegistry;

import java.util.ArrayList;

/**
 * @author shadowfacts
 */
public class EFRecipes {

	public static void registerAll() {
		registerCraftingRecipes();
		registerFurnaceRecipes();
		registerGrinderRecipes();
	}

	private static void registerCraftingRecipes() {

	}

	private static void registerFurnaceRecipes() {

	}

	private static void registerGrinderRecipes() {
		ArrayList<GrinderOutput> outputs = new ArrayList<>();

//		Chalcopyrite
		outputs.add(new GrinderOutput(EFItems.dustCopper, 0.25));
		outputs.add(new GrinderOutput(EFItems.dustIron, 0.25));
		outputs.add(new GrinderOutput(EFItems.sulfur, 0.5));
		GrinderRecipeRegistry.addRecipe(new GrinderRecipe(EFBlocks.oreChalcopyrite, outputs));
		outputs.clear();

//		Galena
		outputs.add(new GrinderOutput(EFItems.dustLead, 0.5));
		outputs.add(new GrinderOutput(EFItems.sulfur, 0.5));
		GrinderRecipeRegistry.addRecipe(new GrinderRecipe(EFBlocks.oreGalena, outputs));
		outputs.clear();

//		Chlorargyrite
		outputs.add(new GrinderOutput(EFItems.dustSilver, 1));
		GrinderRecipeRegistry.addRecipe(new GrinderRecipe(EFBlocks.oreChlorargyrite, outputs));
		outputs.clear();

	}

}

@@ -1052,38 +1052,50 @@
 uts));%0A%09%09outputs
-.clear
+ = new ArrayList%3C%3E
 ();%0A%0A//%09%09Galena%0A
@@ -1294,30 +1294,42 @@
 );%0A%09%09outputs
-.clear
+ = new ArrayList%3C%3E
 ();%0A%0A//%09%09Chl
@@ -1499,14 +1499,276 @@
 puts
-.clear
+ = new ArrayList%3C%3E();%0A%0A//%09%09Pyrargyrite%0A%09%09outputs.add(new GrinderOutput(EFItems.dustSilver, 0.5));%0A%09%09outputs.add(new GrinderOutput(EFItems.sulfur, 0.5));%0A%09%09GrinderRecipeRegistry.addRecipe(new GrinderRecipe(EFBlocks.orePyrargyrite, outputs));%0A%09%09outputs = new ArrayList%3C%3E
 ();%0A

Add Pyrargyrite grinder recipe