2015-03-07 12:51:28 +01:00
|
|
|
package ellpeck.actuallyadditions.crafting;
|
2015-03-07 02:23:31 +01:00
|
|
|
|
2015-03-07 12:51:28 +01:00
|
|
|
import ellpeck.actuallyadditions.items.InitItems;
|
|
|
|
import ellpeck.actuallyadditions.items.metalists.TheDusts;
|
2015-05-20 22:39:43 +02:00
|
|
|
import ellpeck.actuallyadditions.items.metalists.TheFoods;
|
2015-05-04 17:26:50 +02:00
|
|
|
import ellpeck.actuallyadditions.recipe.GrinderRecipeHandler;
|
|
|
|
import ellpeck.actuallyadditions.recipe.GrinderRecipeHandler.SearchCase;
|
2015-03-07 12:51:28 +01:00
|
|
|
import ellpeck.actuallyadditions.recipe.GrinderRecipes;
|
|
|
|
import ellpeck.actuallyadditions.util.Util;
|
2015-03-07 02:23:31 +01:00
|
|
|
import net.minecraft.init.Blocks;
|
|
|
|
import net.minecraft.init.Items;
|
|
|
|
import net.minecraft.item.ItemStack;
|
|
|
|
|
|
|
|
public class GrinderCrafting{
|
|
|
|
|
2015-05-04 17:26:50 +02:00
|
|
|
private static GrinderRecipeHandler grindRecHan = GrinderRecipeHandler.instance();
|
|
|
|
private static GrinderRecipes grindRec = GrinderRecipes.instance();
|
|
|
|
|
2015-03-07 02:23:31 +01:00
|
|
|
public static void init(){
|
2015-04-04 05:20:19 +02:00
|
|
|
Util.logInfo("Initializing Crusher Recipes...");
|
2015-03-07 02:23:31 +01:00
|
|
|
|
2015-05-20 22:39:43 +02:00
|
|
|
grindRec.registerRecipe(new ItemStack(Blocks.redstone_ore), new ItemStack(Items.redstone, 10));
|
|
|
|
grindRec.registerRecipe(new ItemStack(Blocks.lapis_ore), new ItemStack(InitItems.itemDust, 12, TheDusts.LAPIS.ordinal()));
|
|
|
|
grindRec.registerRecipe(new ItemStack(Items.coal), new ItemStack(InitItems.itemDust, 1, TheDusts.COAL.ordinal()));
|
|
|
|
grindRec.registerRecipe(new ItemStack(Blocks.coal_block), new ItemStack(InitItems.itemDust, 9, TheDusts.COAL.ordinal()));
|
2015-05-07 16:36:29 +02:00
|
|
|
|
2015-05-20 22:39:43 +02:00
|
|
|
grindRec.registerRecipe(new ItemStack(Blocks.cobblestone), new ItemStack(Blocks.sand));
|
2015-05-07 16:36:29 +02:00
|
|
|
grindRec.registerRecipe(new ItemStack(Blocks.gravel), new ItemStack(Items.flint));
|
2015-05-20 22:39:43 +02:00
|
|
|
grindRec.registerRecipe(new ItemStack(Blocks.stone), new ItemStack(Blocks.cobblestone));
|
|
|
|
grindRec.registerRecipe(new ItemStack(InitItems.itemFoods, 1, TheFoods.RICE.ordinal()), new ItemStack(Items.sugar, 2));
|
2015-05-07 16:36:29 +02:00
|
|
|
|
|
|
|
grindRec.registerRecipe("oreNickel", "dustNickel", "dustPlatinum", 30, 2);
|
|
|
|
grindRec.registerRecipe("oreIron", "dustIron", "dustGold", 20, 2);
|
2015-03-08 14:58:26 +01:00
|
|
|
|
2015-05-04 17:26:50 +02:00
|
|
|
grindRecHan.searchCases.add(new SearchCase("oreNether", 6));
|
|
|
|
grindRecHan.searchCases.add(new SearchCase("denseore", 8));
|
|
|
|
grindRecHan.searchCases.add(new SearchCase("ingot", 1));
|
2015-05-20 22:39:43 +02:00
|
|
|
grindRecHan.searchCases.add(new SearchCase("gem", 1));
|
|
|
|
grindRecHan.searchCases.add(new SearchCase("ore", 2));
|
2015-05-04 17:26:50 +02:00
|
|
|
grindRecHan.exceptions.add("ingotBrick");
|
|
|
|
grindRecHan.exceptions.add("ingotBrickNether");
|
2015-03-07 02:23:31 +01:00
|
|
|
|
2015-05-04 17:26:50 +02:00
|
|
|
grindRecHan.registerFinally();
|
2015-03-07 02:23:31 +01:00
|
|
|
}
|
|
|
|
}
|