Search in sources :

Example 1 with IPneumaticRecipeRegistry

use of pneumaticCraft.api.recipe.IPneumaticRecipeRegistry in project PneumaticCraft by MineMaarten.

the class CraftingRegistrator method addPressureChamberRecipes.

private static void addPressureChamberRecipes() {
    IPneumaticRecipeRegistry registry = PneumaticRegistry.getInstance().getRecipeRegistry();
    // diamond
    if (Config.enableCoalToDiamondsRecipe)
        registry.registerPressureChamberRecipe(new ItemStack[] { new ItemStack(Blocks.coal_block, 8, 0) }, 4.0F, new ItemStack[] { new ItemStack(Items.diamond, 1, 0) });
    // compressed iron
    registry.registerPressureChamberRecipe(new Object[] { new ImmutablePair("ingotIron", 1) }, 2F, new ItemStack[] { new ItemStack(Itemss.ingotIronCompressed, 1, 0) });
    registry.registerPressureChamberRecipe(new Object[] { new ImmutablePair("blockIron", 1) }, 2F, new ItemStack[] { new ItemStack(Blockss.compressedIron, 1, 0) });
    // turbine blade
    registry.registerPressureChamberRecipe(new Object[] { new ImmutablePair("dustRedstone", 2), new ImmutablePair("ingotGold", 1) }, 1F, new ItemStack[] { new ItemStack(Itemss.turbineBlade, 1, 0) });
    // plastic
    for (int i = 0; i < 16; i++) {
        registry.registerPressureChamberRecipe(new ItemStack[] { new ItemStack(Itemss.plasticPlant, 1, i) }, 0.5F, new ItemStack[] { new ItemStack(Itemss.plastic, 1, i) });
    }
    // Empty PCB
    registry.registerPressureChamberRecipe(new Object[] { new ItemStack(Itemss.plastic, 1, ItemPlasticPlants.CREEPER_PLANT_DAMAGE), new ImmutablePair(Names.INGOT_IRON_COMPRESSED, 1) }, 1.5F, new ItemStack[] { new ItemStack(Itemss.emptyPCB, 1, Itemss.emptyPCB.getMaxDamage()) });
    // Etching Acid Bucket
    registry.registerPressureChamberRecipe(new ItemStack[] { new ItemStack(Itemss.plastic, 2, ItemPlasticPlants.CREEPER_PLANT_DAMAGE), new ItemStack(Items.rotten_flesh, 2, 0), new ItemStack(Items.gunpowder, 2, 0), new ItemStack(Items.spider_eye, 2, 0), new ItemStack(Items.water_bucket) }, 1.0F, new ItemStack[] { new ItemStack(Fluids.getBucket(Fluids.etchingAcid)) });
    // Transistor
    registry.registerPressureChamberRecipe(new Object[] { new ItemStack(Itemss.plastic, 1, ItemPlasticPlants.SQUID_PLANT_DAMAGE), new ImmutablePair("ingotIronCompressed", 1), new ImmutablePair("dustRedstone", 1) }, 1.0F, new ItemStack[] { new ItemStack(Itemss.transistor) });
    // Capacitor
    registry.registerPressureChamberRecipe(new Object[] { new ItemStack(Itemss.plastic, 1, ItemPlasticPlants.LIGHTNING_PLANT_DAMAGE), new ImmutablePair("ingotIronCompressed", 1), new ImmutablePair("dustRedstone", 1) }, 1.0F, new ItemStack[] { new ItemStack(Itemss.capacitor) });
    //Vacuum dis-enchanting
    registry.registerPressureChamberRecipe(new PressureChamberVacuumEnchantHandler());
}
Also used : ImmutablePair(org.apache.commons.lang3.tuple.ImmutablePair) IPneumaticRecipeRegistry(pneumaticCraft.api.recipe.IPneumaticRecipeRegistry) ItemStack(net.minecraft.item.ItemStack)

Aggregations

ItemStack (net.minecraft.item.ItemStack)1 ImmutablePair (org.apache.commons.lang3.tuple.ImmutablePair)1 IPneumaticRecipeRegistry (pneumaticCraft.api.recipe.IPneumaticRecipeRegistry)1