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-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-07-01 16:06:40 +02:00
|
|
|
|
|
|
|
|
|
public class CrusherCrafting{
|
|
|
|
|
|
2015-10-03 23:28:32 +02:00
|
|
|
|
public static CrusherRecipeRegistry.CrusherRecipe recipeSugar;
|
|
|
|
|
|
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-10-02 16:48:01 +02:00
|
|
|
|
if(ConfigCrafting.REDSTONE.isEnabled()){
|
2015-10-03 21:56:22 +02:00
|
|
|
|
CrusherRecipeRegistry.addRecipe("oreRedstone", "dustRedstone", 10);
|
2015-10-02 16:48:01 +02:00
|
|
|
|
}
|
|
|
|
|
if(ConfigCrafting.LAPIS.isEnabled()){
|
2015-10-03 21:56:22 +02:00
|
|
|
|
CrusherRecipeRegistry.addRecipe("oreLapis", "gemLapis", 12);
|
2015-10-02 16:48:01 +02:00
|
|
|
|
}
|
|
|
|
|
if(ConfigCrafting.COAL.isEnabled()){
|
2015-10-03 21:56:22 +02:00
|
|
|
|
CrusherRecipeRegistry.addRecipe("coal", "dustCoal", 1);
|
2015-10-02 16:48:01 +02:00
|
|
|
|
}
|
|
|
|
|
if(ConfigCrafting.COAL_ORE.isEnabled()){
|
2015-10-03 21:56:22 +02:00
|
|
|
|
CrusherRecipeRegistry.addRecipe("oreCoal", "coal", 3);
|
2015-10-02 16:48:01 +02:00
|
|
|
|
}
|
|
|
|
|
if(ConfigCrafting.COAL_BLOCKS.isEnabled()){
|
2015-10-03 21:56:22 +02:00
|
|
|
|
CrusherRecipeRegistry.addRecipe("blockCoal", "coal", 9);
|
2015-10-02 16:48:01 +02:00
|
|
|
|
}
|
2015-10-03 22:09:53 +02:00
|
|
|
|
if(ConfigCrafting.QUARTZ_ORE.isEnabled()){
|
|
|
|
|
CrusherRecipeRegistry.addRecipe("oreQuartz", "gemQuartz", 3);
|
|
|
|
|
}
|
2015-10-02 16:48:01 +02:00
|
|
|
|
|
|
|
|
|
if(ConfigCrafting.COBBLESTONE.isEnabled()){
|
2015-10-03 21:56:22 +02:00
|
|
|
|
CrusherRecipeRegistry.addRecipe("cobblestone", "sand", 1);
|
2015-10-02 16:48:01 +02:00
|
|
|
|
}
|
|
|
|
|
if(ConfigCrafting.GRAVEL.isEnabled()){
|
2015-10-03 21:56:22 +02:00
|
|
|
|
CrusherRecipeRegistry.addRecipe("gravel", "flint", 1);
|
2015-10-02 16:48:01 +02:00
|
|
|
|
}
|
|
|
|
|
if(ConfigCrafting.STONE.isEnabled()){
|
2015-10-03 21:56:22 +02:00
|
|
|
|
CrusherRecipeRegistry.addRecipe("stone", "cobblestone", 1);
|
2015-10-02 16:48:01 +02:00
|
|
|
|
}
|
|
|
|
|
if(ConfigCrafting.RICE_SUGAR.isEnabled()){
|
2015-10-03 21:56:22 +02:00
|
|
|
|
CrusherRecipeRegistry.addRecipe("cropRice", "sugar", 2);
|
2015-10-03 23:28:32 +02:00
|
|
|
|
recipeSugar = Util.GetRecipes.lastCrusherRecipe();
|
2015-10-02 16:48:01 +02:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if(ConfigCrafting.NICKEL.isEnabled()){
|
2015-10-03 21:56:22 +02:00
|
|
|
|
CrusherRecipeRegistry.addRecipe("oreNickel", "dustNickel", 2, "dustPlatinum", 1, 15);
|
2015-10-02 16:48:01 +02:00
|
|
|
|
}
|
|
|
|
|
if(ConfigCrafting.IRON.isEnabled()){
|
2015-10-03 21:56:22 +02:00
|
|
|
|
CrusherRecipeRegistry.addRecipe("oreIron", "dustIron", 2, "dustGold", 1, 20);
|
2015-10-02 16:48:01 +02:00
|
|
|
|
}
|
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
|
|
|
|
}
|
|
|
|
|
}
|