package rewbot.minecraft.tutorial.crafting;

import net.minecraft.init.Items;
import net.minecraft.item.ItemStack;
import net.minecraftforge.fml.common.registry.GameRegistry;
import rewbot.minecraft.tutorial.blocks.MmaBlocks;
import rewbot.minecraft.tutorial.items.MmaItems;

/**
 * Created by ashepherd on 5/22/2016.
 */
public class MmaRecipes {

    public static void initRecipes() {
        initCopperRecipes();
        initLaconianRecipes();
    }

    private static void initCopperRecipes() {
        //addRecipe takes Java varargs as it's second argument. They let you pass any number of objects of a specific type, in this case object
        GameRegistry.addRecipe(new ItemStack(MmaBlocks.copperBlock),
                "###",
                "###",
                "###",
                '#', MmaItems.copperIngot
        );

        GameRegistry.addShapelessRecipe(new ItemStack(MmaItems.copperIngot, 9),
                MmaBlocks.copperBlock
        );
    }

    private static void initLaconianRecipes() {
        //Shaped
        //Sword
        GameRegistry.addRecipe(new ItemStack(MmaItems.laconianSword),
                " L ",
                " L ",
                " W ",
                'L', MmaItems.laconianIngot,
                'W', Items.stick
        );

        //Shapeless
        GameRegistry.addShapelessRecipe(new ItemStack(MmaBlocks.laconianOre, 64), Items.diamond);
    }
}

@@ -1163,34 +1163,292 @@
               %22 
-L 
+* %22,%0D%0A                %22 * %22,%0D%0A                %22 # %22,%0D%0A                '*', MmaItems.laconianIngot,%0D%0A                '#', Items.stick%0D%0A        );%0D%0A%0D%0A        //Pickaxe%0D%0A        GameRegistry.addRecipe(new ItemStack(MmaItems.laconianPickaxe),%0D%0A                %22***
 %22,%0D%0A            
@@ -1453,17 +1453,17 @@
       %22 
-L
+#
  %22,%0D%0A   
@@ -1477,17 +1477,17 @@
       %22 
-W
+#
  %22,%0D%0A   
@@ -1500,17 +1500,17 @@
        '
-L
+*
 ', MmaIt
@@ -1550,9 +1550,9 @@
    '
-W
+#
 ', I
@@ -1569,32 +1569,1680 @@
 %0D%0A        );%0D%0A%0D%0A
+        //Axe%0D%0A        GameRegistry.addRecipe(new ItemStack(MmaItems.laconianAxe),%0D%0A                %22** %22,%0D%0A                %22*# %22,%0D%0A                %22 # %22,%0D%0A                '*', MmaItems.laconianIngot,%0D%0A                '#', Items.stick%0D%0A        );%0D%0A%0D%0A        //Hoe%0D%0A        GameRegistry.addRecipe(new ItemStack(MmaItems.laconianHoe),%0D%0A                %22** %22,%0D%0A                %22 # %22,%0D%0A                %22 # %22,%0D%0A                '*', MmaItems.laconianIngot,%0D%0A                '#', Items.stick%0D%0A        );%0D%0A%0D%0A        //Spade%0D%0A        GameRegistry.addRecipe(new ItemStack(MmaItems.laconianSpade),%0D%0A                %22 * %22,%0D%0A                %22 # %22,%0D%0A                %22 # %22,%0D%0A                '*', MmaItems.laconianIngot,%0D%0A                '#', Items.stick%0D%0A        );%0D%0A%0D%0A        //Helmet%0D%0A        GameRegistry.addRecipe(new ItemStack(MmaItems.laconianHelmet),%0D%0A                %22###%22,%0D%0A                %22# #%22,%0D%0A                %22   %22,%0D%0A                '#', MmaItems.laconianIngot%0D%0A        );%0D%0A%0D%0A        //Chestplate%0D%0A        GameRegistry.addRecipe(new ItemStack(MmaItems.laconianChestplate),%0D%0A                %22# #%22,%0D%0A                %22###%22,%0D%0A                %22###%22,%0D%0A                '#', MmaItems.laconianIngot%0D%0A        );%0D%0A%0D%0A        //Leggings%0D%0A        GameRegistry.addRecipe(new ItemStack(MmaItems.laconianLeggings),%0D%0A                %22###%22,%0D%0A                %22# #%22,%0D%0A                %22# #%22,%0D%0A                '#', MmaItems.laconianIngot%0D%0A        );%0D%0A%0D%0A        //Boots%0D%0A        GameRegistry.addRecipe(new ItemStack(MmaItems.laconianBoots),%0D%0A                %22   %22,%0D%0A                %22# #%22,%0D%0A                %22# #%22,%0D%0A                '#', MmaItems.laconianIngot%0D%0A        );%0D%0A%0D%0A
         //Shapel

Add more Laconian recipes