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
|
|
|
|
|
*
|
|
|
|
|
* <EFBFBD> 2015 Ellpeck
|
|
|
|
|
*/
|
|
|
|
|
|
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-07-01 16:06:40 +02:00
|
|
|
|
import ellpeck.actuallyadditions.items.InitItems;
|
2015-07-15 05:59:22 +02:00
|
|
|
|
import ellpeck.actuallyadditions.items.metalists.TheDusts;
|
2015-07-01 16:06:40 +02:00
|
|
|
|
import ellpeck.actuallyadditions.items.metalists.TheFoods;
|
|
|
|
|
import ellpeck.actuallyadditions.recipe.CrusherRecipeAutoRegistry;
|
|
|
|
|
import ellpeck.actuallyadditions.recipe.CrusherRecipeAutoRegistry.SearchCase;
|
|
|
|
|
import ellpeck.actuallyadditions.recipe.CrusherRecipeManualRegistry;
|
2015-07-01 21:32:48 +02:00
|
|
|
|
import ellpeck.actuallyadditions.util.ModUtil;
|
2015-07-01 16:06:40 +02:00
|
|
|
|
import net.minecraft.init.Blocks;
|
|
|
|
|
import net.minecraft.init.Items;
|
|
|
|
|
import net.minecraft.item.ItemStack;
|
|
|
|
|
|
|
|
|
|
public class CrusherCrafting{
|
|
|
|
|
|
|
|
|
|
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-10-02 16:48:01 +02:00
|
|
|
|
if(ConfigCrafting.REDSTONE.isEnabled()){
|
|
|
|
|
CrusherRecipeManualRegistry.registerRecipe(new ItemStack(Blocks.redstone_ore), new ItemStack(Items.redstone, 10));
|
|
|
|
|
}
|
|
|
|
|
if(ConfigCrafting.LAPIS.isEnabled()){
|
|
|
|
|
CrusherRecipeManualRegistry.registerRecipe(new ItemStack(Blocks.lapis_ore), new ItemStack(Items.dye, 12, 4));
|
|
|
|
|
}
|
|
|
|
|
if(ConfigCrafting.COAL.isEnabled()){
|
|
|
|
|
CrusherRecipeManualRegistry.registerRecipe(new ItemStack(Items.coal), new ItemStack(InitItems.itemDust, 1, TheDusts.COAL.ordinal()));
|
|
|
|
|
}
|
|
|
|
|
if(ConfigCrafting.COAL_ORE.isEnabled()){
|
|
|
|
|
CrusherRecipeManualRegistry.registerRecipe(new ItemStack(Blocks.coal_ore), new ItemStack(Items.coal, 3));
|
|
|
|
|
}
|
|
|
|
|
if(ConfigCrafting.COAL_BLOCKS.isEnabled()){
|
|
|
|
|
CrusherRecipeManualRegistry.registerRecipe(new ItemStack(Blocks.coal_block), new ItemStack(Items.coal, 9));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if(ConfigCrafting.COBBLESTONE.isEnabled()){
|
|
|
|
|
CrusherRecipeManualRegistry.registerRecipe(new ItemStack(Blocks.cobblestone), new ItemStack(Blocks.sand));
|
|
|
|
|
}
|
|
|
|
|
if(ConfigCrafting.GRAVEL.isEnabled()){
|
|
|
|
|
CrusherRecipeManualRegistry.registerRecipe(new ItemStack(Blocks.gravel), new ItemStack(Items.flint));
|
|
|
|
|
}
|
|
|
|
|
if(ConfigCrafting.STONE.isEnabled()){
|
|
|
|
|
CrusherRecipeManualRegistry.registerRecipe(new ItemStack(Blocks.stone), new ItemStack(Blocks.cobblestone));
|
|
|
|
|
}
|
|
|
|
|
if(ConfigCrafting.RICE_SUGAR.isEnabled()){
|
|
|
|
|
CrusherRecipeManualRegistry.registerRecipe(new ItemStack(InitItems.itemFoods, 1, TheFoods.RICE.ordinal()), new ItemStack(Items.sugar, 2));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if(ConfigCrafting.NICKEL.isEnabled()){
|
|
|
|
|
CrusherRecipeManualRegistry.registerRecipe("oreNickel", "dustNickel", "dustPlatinum", 15, 2, 1);
|
|
|
|
|
}
|
|
|
|
|
if(ConfigCrafting.IRON.isEnabled()){
|
|
|
|
|
CrusherRecipeManualRegistry.registerRecipe("oreIron", "dustIron", "dustGold", 20, 2, 1);
|
|
|
|
|
}
|
2015-07-01 16:06:40 +02:00
|
|
|
|
|
|
|
|
|
CrusherRecipeAutoRegistry.searchCases.add(new SearchCase("oreNether", 6));
|
2015-07-01 21:32:48 +02:00
|
|
|
|
CrusherRecipeAutoRegistry.searchCases.add(new SearchCase("orePoor", 4, "nugget"));
|
2015-07-01 16:06:40 +02:00
|
|
|
|
CrusherRecipeAutoRegistry.searchCases.add(new SearchCase("denseore", 8));
|
|
|
|
|
CrusherRecipeAutoRegistry.searchCases.add(new SearchCase("gem", 1));
|
|
|
|
|
CrusherRecipeAutoRegistry.searchCases.add(new SearchCase("ingot", 1));
|
|
|
|
|
CrusherRecipeAutoRegistry.searchCases.add(new SearchCase("ore", 2));
|
|
|
|
|
|
|
|
|
|
CrusherRecipeAutoRegistry.registerFinally();
|
|
|
|
|
}
|
|
|
|
|
}
|