The Great Refactor of 2017 - Implosion Compressor Recipes
This commit is contained in:
parent
cf6fbb5ddc
commit
1831ff4dbc
3 changed files with 54 additions and 38 deletions
|
@ -33,6 +33,7 @@ import techreborn.blocks.BlockOre2;
|
|||
import techreborn.compat.CompatManager;
|
||||
import techreborn.config.ConfigTechReborn;
|
||||
import techreborn.init.recipes.CraftingTableRecipes;
|
||||
import techreborn.init.recipes.ImplosionCompressorRecipes;
|
||||
import techreborn.init.recipes.IndustrialElectrolyzerRecipes;
|
||||
import techreborn.init.recipes.IndustrialGrinderRecipes;
|
||||
import techreborn.items.*;
|
||||
|
@ -65,6 +66,7 @@ public class ModRecipes {
|
|||
CraftingTableRecipes.init();
|
||||
IndustrialGrinderRecipes.init();
|
||||
IndustrialElectrolyzerRecipes.init();
|
||||
ImplosionCompressorRecipes.init();
|
||||
|
||||
addGeneralShapedRecipes();
|
||||
addMachineRecipes();
|
||||
|
@ -78,7 +80,6 @@ public class ModRecipes {
|
|||
addChemicalReactorRecipes();
|
||||
|
||||
addBlastFurnaceRecipes();
|
||||
addImplosionCompressorRecipes();
|
||||
addVacuumFreezerRecipes();
|
||||
|
||||
addReactorRecipes();
|
||||
|
@ -318,7 +319,7 @@ public class ModRecipes {
|
|||
|
||||
CraftingHelper
|
||||
.addShapedOreRecipe(ItemStandaloneCables.getCableByName("glassfiber", 4), "GGG", "SDS", "GGG", 'G',
|
||||
"blockGlass", 'S', "dustRedstone", 'D', "diamondTR");
|
||||
"blockGlass", 'S', "dustRedstone", 'D', "gemDiamond");
|
||||
|
||||
CraftingHelper
|
||||
.addShapedOreRecipe(ItemStandaloneCables.getCableByName("glassfiber", 6), "GGG", "SDS", "GGG", 'G',
|
||||
|
@ -326,10 +327,10 @@ public class ModRecipes {
|
|||
|
||||
CraftingHelper
|
||||
.addShapedOreRecipe(ItemStandaloneCables.getCableByName("glassfiber", 6), "GGG", "SDS", "GGG", 'G',
|
||||
"blockGlass", 'S', "ingotSilver", 'D', "diamondTR");
|
||||
"blockGlass", 'S', "ingotSilver", 'D', "gemDiamond");
|
||||
CraftingHelper
|
||||
.addShapedOreRecipe(ItemStandaloneCables.getCableByName("glassfiber", 8), "GGG", "SDS", "GGG", 'G',
|
||||
"blockGlass", 'S', "ingotElectrum", 'D', "diamondTR");
|
||||
"blockGlass", 'S', "ingotElectrum", 'D', "gemDiamond");
|
||||
|
||||
CraftingHelper.addShapelessOreRecipe(IC2Duplicates.CABLE_ICOPPER.getStackBasedOnConfig(), "itemRubber",
|
||||
ItemStandaloneCables.getCableByName("copper"));
|
||||
|
@ -1339,9 +1340,6 @@ public class ModRecipes {
|
|||
new ItemStack(Items.REDSTONE), null, 25000, 20));
|
||||
}
|
||||
|
||||
static void addImplosionCompressorRecipes() {
|
||||
}
|
||||
|
||||
static void addChemicalReactorRecipes() {
|
||||
RecipeHandler.addRecipe(
|
||||
new ChemicalReactorRecipe(ItemCells.getCellByName("calcium", 1), ItemCells.getCellByName("carbon", 1),
|
||||
|
@ -1732,33 +1730,6 @@ public class ModRecipes {
|
|||
ItemIngots.getIngotByName("copper", 2), ItemDustsSmall.getSmallDustByName("Tungsten", 1),
|
||||
ItemIngots.getIngotByName("tin", 2), 6000, 5));
|
||||
|
||||
// Implosion compressor
|
||||
RecipeHandler.addRecipe(new ImplosionCompressorRecipe(ItemIngots.getIngotByName("iridium_alloy"),
|
||||
new ItemStack(Blocks.TNT, 8),
|
||||
OreDictionary.getOres("plateIridium").get(0).copy(), ItemDusts.getDustByName("dark_ashes", 4), 20, 30));
|
||||
RecipeHandler.addRecipe(new ImplosionCompressorRecipe(ItemDusts.getDustByName("diamond", 4),
|
||||
new ItemStack(Blocks.TNT, 32),
|
||||
new ItemStack(Items.DIAMOND, 3),
|
||||
ItemDusts.getDustByName("dark_ashes", 16), 20, 30));
|
||||
RecipeHandler.addRecipe(new ImplosionCompressorRecipe(ItemDusts.getDustByName("emerald", 4),
|
||||
new ItemStack(Blocks.TNT, 24),
|
||||
new ItemStack(Items.EMERALD, 3), ItemDusts.getDustByName("dark_ashes", 12), 20, 30));
|
||||
RecipeHandler.addRecipe(new ImplosionCompressorRecipe(ItemDusts.getDustByName("sapphire", 4),
|
||||
new ItemStack(Blocks.TNT, 24),
|
||||
ItemGems.getGemByName("sapphire", 3), ItemDusts.getDustByName("dark_ashes", 12), 20, 30));
|
||||
RecipeHandler.addRecipe(new ImplosionCompressorRecipe(ItemDusts.getDustByName("ruby", 4),
|
||||
new ItemStack(Blocks.TNT, 24),
|
||||
ItemGems.getGemByName("ruby", 3), ItemDusts.getDustByName("dark_ashes", 12), 20, 30));
|
||||
RecipeHandler.addRecipe(new ImplosionCompressorRecipe(ItemDusts.getDustByName("yellow_garnet", 4),
|
||||
new ItemStack(Blocks.TNT, 24),
|
||||
ItemGems.getGemByName("yellow_garnet", 3), ItemDusts.getDustByName("dark_ashes", 12), 20, 30));
|
||||
RecipeHandler.addRecipe(new ImplosionCompressorRecipe(ItemDusts.getDustByName("red_garnet", 4),
|
||||
new ItemStack(Blocks.TNT, 24),
|
||||
ItemGems.getGemByName("red_garnet", 3), ItemDusts.getDustByName("dark_ashes", 12), 20, 30));
|
||||
RecipeHandler.addRecipe(new ImplosionCompressorRecipe(ItemDusts.getDustByName("peridot", 4),
|
||||
new ItemStack(Blocks.TNT, 24),
|
||||
ItemGems.getGemByName("peridot", 3), ItemDusts.getDustByName("dark_ashes", 12), 20, 30));
|
||||
|
||||
// Chemical Reactor
|
||||
RecipeHandler.addRecipe(new ChemicalReactorRecipe(ItemDusts.getDustByName("calcite", 1), null,
|
||||
new ItemStack(OreDictionary.getOres("fertilizer").get(0).getItem(), 1), 100, 30));
|
||||
|
|
|
@ -65,9 +65,6 @@ public class OreDict {
|
|||
OreDictionary.registerOre("woodRubber", ModBlocks.RUBBER_LOG);
|
||||
OreDictionary.registerOre("glassReinforced", ModBlocks.REINFORCED_GLASS);
|
||||
|
||||
OreDictionary.registerOre("diamondTR", ItemDusts.getDustByName("Diamond"));
|
||||
OreDictionary.registerOre("diamondTR", Items.DIAMOND);
|
||||
|
||||
OreDictionary.registerOre("craftingGrinder", ItemParts.getPartByName("diamondGrindingHead"));
|
||||
OreDictionary.registerOre("craftingGrinder", ItemParts.getPartByName("tungstenGrindingHead"));
|
||||
OreDictionary.registerOre("craftingSuperconductor", ItemParts.getPartByName("superconductor"));
|
||||
|
|
|
@ -1,7 +1,55 @@
|
|||
package techreborn.init.recipes;
|
||||
|
||||
import net.minecraft.init.Blocks;
|
||||
import net.minecraft.init.Items;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import reborncore.api.recipe.RecipeHandler;
|
||||
import techreborn.api.recipe.machines.ImplosionCompressorRecipe;
|
||||
|
||||
import java.security.InvalidParameterException;
|
||||
|
||||
/**
|
||||
* Created by Prospector
|
||||
*/
|
||||
public class ImplosionCompressorRecipes {
|
||||
public class ImplosionCompressorRecipes extends RecipeMethods {
|
||||
public static void init() {
|
||||
register(getOre("ingotIridiumAlloy"), getMaterial("iridium", Type.PLATE), 4);
|
||||
register(getOre("dustDiamond", 4), new ItemStack(Items.DIAMOND, 3), 16);
|
||||
register(getOre("dustEmerald", 4), new ItemStack(Items.EMERALD, 3), 12);
|
||||
register(getOre("dustRuby", 4), getMaterial("ruby", 3, Type.GEM), 12);
|
||||
register(getOre("dustSapphire", 4), getMaterial("sapphire", 3, Type.GEM), 12);
|
||||
register(getOre("dustPeridot", 4), getMaterial("peridot", 3, Type.GEM), 12);
|
||||
register(getOre("dustRedGarnet", 4), getMaterial("red_garnet", 3, Type.GEM), 8);
|
||||
register(getOre("dustYellowGarnet", 4), getMaterial("yellow_garnet", 3, Type.GEM), 8);
|
||||
if (oresExist("dustApatite", "gemApatite")) {
|
||||
register(getOre("dustApatite", 4), getOre("gemApatite", 3), 12);
|
||||
}
|
||||
|
||||
if (oresExist("dustCertusQuartz", "crystalCertusQuartz")) {
|
||||
register(getOre("dustCertusQuartz", 4), getOre("crystalCertusQuartz", 3), 12);
|
||||
}
|
||||
if (oresExist("dustAmethyst", "gemAmethyst")) {
|
||||
register(getOre("dustAmethyst", 4), getOre("gemAmethyst", 3), 12);
|
||||
}
|
||||
|
||||
if (oresExist("dustTopaz", "gemTopaz")) {
|
||||
register(getOre("dustTopaz", 4), getOre("gemTopaz", 3), 12);
|
||||
}
|
||||
|
||||
if (oresExist("dustTanzanite", "gemTanzanite")) {
|
||||
register(getOre("dustTanzanite", 4), getOre("gemTanzanite", 3), 12);
|
||||
}
|
||||
|
||||
if (oresExist("dustMalachite", "gemMalachite")) {
|
||||
register(getOre("dustMalachite", 4), getOre("gemMalachite", 3), 12);
|
||||
}
|
||||
}
|
||||
|
||||
static void register(ItemStack input, ItemStack output, int darkAshes) {
|
||||
if (darkAshes < 1 || darkAshes > 64) {
|
||||
throw new InvalidParameterException("Invalid implosion compressor darkAshes input: " + darkAshes);
|
||||
}
|
||||
|
||||
RecipeHandler.addRecipe(new ImplosionCompressorRecipe(input, new ItemStack(Blocks.TNT, 16), output, getMaterial("dark_ashes", darkAshes, Type.DUST), 20, 32));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue