2015-08-29 14:33:25 +02:00
|
|
|
/*
|
|
|
|
* This file ("CrusherCrafting.java") is part of the Actually Additions Mod for Minecraft.
|
|
|
|
* It is created and owned by Ellpeck and distributed
|
|
|
|
* under the Actually Additions License to be found at
|
|
|
|
* http://github.com/Ellpeck/ActuallyAdditions/blob/master/README.md
|
|
|
|
* View the source code at https://github.com/Ellpeck/ActuallyAdditions
|
|
|
|
*
|
2015-11-02 20:55:19 +01:00
|
|
|
* © 2015 Ellpeck
|
2015-08-29 14:33:25 +02:00
|
|
|
*/
|
|
|
|
|
2015-07-01 16:06:40 +02:00
|
|
|
package ellpeck.actuallyadditions.crafting;
|
|
|
|
|
2015-07-02 11:44:41 +02:00
|
|
|
import ellpeck.actuallyadditions.config.values.ConfigCrafting;
|
2015-12-01 23:23:55 +01:00
|
|
|
import ellpeck.actuallyadditions.items.InitItems;
|
|
|
|
import ellpeck.actuallyadditions.items.metalists.TheFoods;
|
2015-12-01 23:41:33 +01:00
|
|
|
import ellpeck.actuallyadditions.items.metalists.TheMiscItems;
|
2015-10-03 21:56:22 +02:00
|
|
|
import ellpeck.actuallyadditions.recipe.CrusherRecipeRegistry;
|
2015-07-01 21:32:48 +02:00
|
|
|
import ellpeck.actuallyadditions.util.ModUtil;
|
2015-10-03 23:28:32 +02:00
|
|
|
import ellpeck.actuallyadditions.util.Util;
|
2015-12-01 23:23:55 +01:00
|
|
|
import net.minecraft.init.Blocks;
|
|
|
|
import net.minecraft.init.Items;
|
|
|
|
import net.minecraft.item.ItemStack;
|
2015-07-01 16:06:40 +02:00
|
|
|
|
2015-11-10 21:26:28 +01:00
|
|
|
import java.util.ArrayList;
|
|
|
|
|
2015-07-01 16:06:40 +02:00
|
|
|
public class CrusherCrafting{
|
|
|
|
|
2015-10-05 11:27:53 +02:00
|
|
|
public static CrusherRecipeRegistry.CrusherRecipe recipeIronHorseArmor;
|
|
|
|
public static CrusherRecipeRegistry.CrusherRecipe recipeGoldHorseArmor;
|
|
|
|
public static CrusherRecipeRegistry.CrusherRecipe recipeDiamondHorseArmor;
|
2015-11-10 21:26:28 +01:00
|
|
|
public static ArrayList<CrusherRecipeRegistry.CrusherRecipe> miscRecipes = new ArrayList<CrusherRecipeRegistry.CrusherRecipe>();
|
2015-10-03 23:28:32 +02:00
|
|
|
|
2015-07-01 16:06:40 +02:00
|
|
|
public static void init(){
|
2015-07-01 21:32:48 +02:00
|
|
|
ModUtil.LOGGER.info("Initializing Crusher Recipes...");
|
2015-07-01 16:06:40 +02:00
|
|
|
|
2015-12-01 23:23:55 +01:00
|
|
|
CrusherRecipeRegistry.addRecipe(new ItemStack(Items.bone), new ItemStack(Items.dye, 6, 15));
|
2015-11-28 19:02:01 +01:00
|
|
|
miscRecipes.add(Util.GetRecipes.lastCrusherRecipe());
|
2015-12-01 23:23:55 +01:00
|
|
|
CrusherRecipeRegistry.addRecipe(new ItemStack(Items.reeds), new ItemStack(Items.sugar, 3));
|
2015-11-28 19:02:01 +01:00
|
|
|
miscRecipes.add(Util.GetRecipes.lastCrusherRecipe());
|
2015-11-10 21:26:28 +01:00
|
|
|
|
2015-12-01 23:23:55 +01:00
|
|
|
CrusherRecipeRegistry.addRecipe(new ItemStack(Blocks.yellow_flower), new ItemStack(Items.dye, 3, 11));
|
2015-11-28 19:02:01 +01:00
|
|
|
miscRecipes.add(Util.GetRecipes.lastCrusherRecipe());
|
2015-12-01 23:23:55 +01:00
|
|
|
CrusherRecipeRegistry.addRecipe(new ItemStack(Blocks.red_flower, 1, 0), new ItemStack(Items.dye, 3, 1));
|
2015-11-28 19:02:01 +01:00
|
|
|
miscRecipes.add(Util.GetRecipes.lastCrusherRecipe());
|
2015-12-01 23:23:55 +01:00
|
|
|
CrusherRecipeRegistry.addRecipe(new ItemStack(Blocks.red_flower, 1, 1), new ItemStack(Items.dye, 3, 12));
|
2015-11-28 19:02:01 +01:00
|
|
|
miscRecipes.add(Util.GetRecipes.lastCrusherRecipe());
|
2015-12-01 23:23:55 +01:00
|
|
|
CrusherRecipeRegistry.addRecipe(new ItemStack(Blocks.red_flower, 1, 2), new ItemStack(Items.dye, 3, 13));
|
2015-11-28 19:02:01 +01:00
|
|
|
miscRecipes.add(Util.GetRecipes.lastCrusherRecipe());
|
2015-12-01 23:23:55 +01:00
|
|
|
CrusherRecipeRegistry.addRecipe(new ItemStack(Blocks.red_flower, 1, 3), new ItemStack(Items.dye, 3, 7));
|
2015-11-28 19:02:01 +01:00
|
|
|
miscRecipes.add(Util.GetRecipes.lastCrusherRecipe());
|
2015-12-01 23:23:55 +01:00
|
|
|
CrusherRecipeRegistry.addRecipe(new ItemStack(Blocks.red_flower, 1, 4), new ItemStack(Items.dye, 3, 1));
|
2015-11-28 19:02:01 +01:00
|
|
|
miscRecipes.add(Util.GetRecipes.lastCrusherRecipe());
|
2015-12-01 23:23:55 +01:00
|
|
|
CrusherRecipeRegistry.addRecipe(new ItemStack(Blocks.red_flower, 1, 5), new ItemStack(Items.dye, 3, 14));
|
2015-11-28 19:02:01 +01:00
|
|
|
miscRecipes.add(Util.GetRecipes.lastCrusherRecipe());
|
2015-12-01 23:23:55 +01:00
|
|
|
CrusherRecipeRegistry.addRecipe(new ItemStack(Blocks.red_flower, 1, 6), new ItemStack(Items.dye, 3, 7));
|
2015-11-28 19:02:01 +01:00
|
|
|
miscRecipes.add(Util.GetRecipes.lastCrusherRecipe());
|
2015-12-01 23:23:55 +01:00
|
|
|
CrusherRecipeRegistry.addRecipe(new ItemStack(Blocks.red_flower, 1, 7), new ItemStack(Items.dye, 3, 9));
|
2015-11-28 19:02:01 +01:00
|
|
|
miscRecipes.add(Util.GetRecipes.lastCrusherRecipe());
|
2015-12-01 23:23:55 +01:00
|
|
|
CrusherRecipeRegistry.addRecipe(new ItemStack(Blocks.red_flower, 1, 8), new ItemStack(Items.dye, 3, 7));
|
2015-11-28 19:02:01 +01:00
|
|
|
miscRecipes.add(Util.GetRecipes.lastCrusherRecipe());
|
2015-12-01 23:23:55 +01:00
|
|
|
CrusherRecipeRegistry.addRecipe(new ItemStack(Blocks.double_plant, 1, 0), new ItemStack(Items.dye, 4, 11));
|
2015-11-28 19:02:01 +01:00
|
|
|
miscRecipes.add(Util.GetRecipes.lastCrusherRecipe());
|
2015-12-01 23:23:55 +01:00
|
|
|
CrusherRecipeRegistry.addRecipe(new ItemStack(Blocks.double_plant, 1, 1), new ItemStack(Items.dye, 4, 13));
|
2015-11-28 19:02:01 +01:00
|
|
|
miscRecipes.add(Util.GetRecipes.lastCrusherRecipe());
|
2015-12-01 23:23:55 +01:00
|
|
|
CrusherRecipeRegistry.addRecipe(new ItemStack(Blocks.double_plant, 1, 4), new ItemStack(Items.dye, 4, 1));
|
2015-11-28 19:02:01 +01:00
|
|
|
miscRecipes.add(Util.GetRecipes.lastCrusherRecipe());
|
2015-12-01 23:23:55 +01:00
|
|
|
CrusherRecipeRegistry.addRecipe(new ItemStack(Blocks.double_plant, 1, 5), new ItemStack(Items.dye, 4, 9));
|
2015-11-28 19:02:01 +01:00
|
|
|
miscRecipes.add(Util.GetRecipes.lastCrusherRecipe());
|
2015-11-10 21:26:28 +01:00
|
|
|
|
2015-11-28 19:02:01 +01:00
|
|
|
CrusherRecipeRegistry.addRecipe("oreRedstone", "dustRedstone", 10);
|
|
|
|
CrusherRecipeRegistry.addRecipe("oreLapis", "gemLapis", 12);
|
|
|
|
CrusherRecipeRegistry.addRecipe("coal", "dustCoal", 1);
|
|
|
|
CrusherRecipeRegistry.addRecipe("oreCoal", "coal", 3);
|
|
|
|
CrusherRecipeRegistry.addRecipe("blockCoal", "coal", 9);
|
|
|
|
CrusherRecipeRegistry.addRecipe("oreQuartz", "gemQuartz", 3);
|
|
|
|
CrusherRecipeRegistry.addRecipe("cobblestone", "sand", 1);
|
2015-12-01 23:23:55 +01:00
|
|
|
CrusherRecipeRegistry.addRecipe(new ItemStack(Blocks.gravel), new ItemStack(Items.flint), new ItemStack(Items.flint), 50);
|
2015-11-28 19:02:01 +01:00
|
|
|
CrusherRecipeRegistry.addRecipe("stone", "cobblestone", 1);
|
2015-12-01 23:23:55 +01:00
|
|
|
|
|
|
|
CrusherRecipeRegistry.addRecipe(new ItemStack(InitItems.itemFoods, 1, TheFoods.RICE.ordinal()), new ItemStack(Items.sugar, 1, 2));
|
|
|
|
miscRecipes.add(Util.GetRecipes.lastCrusherRecipe());
|
2015-10-02 16:48:01 +02:00
|
|
|
|
2015-12-01 23:41:33 +01:00
|
|
|
CrusherRecipeRegistry.addRecipe(new ItemStack(Blocks.tallgrass, 1, Util.WILDCARD), new ItemStack(InitItems.itemMisc, 1, TheMiscItems.GREEN_DYE.ordinal()));
|
|
|
|
miscRecipes.add(Util.GetRecipes.lastCrusherRecipe());
|
|
|
|
|
2015-11-28 19:02:01 +01:00
|
|
|
CrusherRecipeRegistry.addRecipe("oreNickel", "dustNickel", 2, "dustPlatinum", 1, 15);
|
|
|
|
CrusherRecipeRegistry.addRecipe("oreIron", "dustIron", 2, "dustGold", 1, 20);
|
2015-10-02 16:48:01 +02:00
|
|
|
|
2015-10-05 11:27:53 +02:00
|
|
|
if(ConfigCrafting.HORSE_ARMORS.isEnabled()){
|
2015-12-01 23:23:55 +01:00
|
|
|
CrusherRecipeRegistry.addRecipe(new ItemStack(Items.iron_horse_armor), "dustIron", 8);
|
2015-10-05 11:27:53 +02:00
|
|
|
recipeIronHorseArmor = Util.GetRecipes.lastCrusherRecipe();
|
|
|
|
|
2015-12-01 23:23:55 +01:00
|
|
|
CrusherRecipeRegistry.addRecipe(new ItemStack(Items.golden_horse_armor), "dustGold", 8);
|
2015-10-05 11:27:53 +02:00
|
|
|
recipeGoldHorseArmor = Util.GetRecipes.lastCrusherRecipe();
|
|
|
|
|
2015-12-01 23:23:55 +01:00
|
|
|
CrusherRecipeRegistry.addRecipe(new ItemStack(Items.diamond_horse_armor), "dustDiamond", 8);
|
2015-10-05 11:27:53 +02:00
|
|
|
recipeDiamondHorseArmor = Util.GetRecipes.lastCrusherRecipe();
|
|
|
|
}
|
2015-07-01 16:06:40 +02:00
|
|
|
|
2015-10-03 21:56:22 +02:00
|
|
|
CrusherRecipeRegistry.searchCases.add(new CrusherRecipeRegistry.SearchCase("oreNether", 6));
|
|
|
|
CrusherRecipeRegistry.searchCases.add(new CrusherRecipeRegistry.SearchCase("orePoor", 4, "nugget"));
|
|
|
|
CrusherRecipeRegistry.searchCases.add(new CrusherRecipeRegistry.SearchCase("denseore", 8));
|
|
|
|
CrusherRecipeRegistry.searchCases.add(new CrusherRecipeRegistry.SearchCase("gem", 1));
|
|
|
|
CrusherRecipeRegistry.searchCases.add(new CrusherRecipeRegistry.SearchCase("ingot", 1));
|
|
|
|
CrusherRecipeRegistry.searchCases.add(new CrusherRecipeRegistry.SearchCase("ore", 2));
|
2015-07-01 16:06:40 +02:00
|
|
|
|
2015-10-03 21:56:22 +02:00
|
|
|
CrusherRecipeRegistry.registerFinally();
|
2015-07-01 16:06:40 +02:00
|
|
|
}
|
|
|
|
}
|