Search in sources :

Example 1 with IPneumaticRecipeRegistry

use of me.desht.pneumaticcraft.api.recipe.IPneumaticRecipeRegistry in project pnc-repressurized by TeamPneumatic.

the class CraftingRegistrator method addPressureChamberRecipes.

private static void addPressureChamberRecipes() {
    IPneumaticRecipeRegistry registry = PneumaticRegistry.getInstance().getRecipeRegistry();
    // diamond
    if (ConfigHandler.recipes.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.INGOT_IRON_COMPRESSED, 1, 0) });
    registry.registerPressureChamberRecipe(new Object[] { new ImmutablePair<>("blockIron", 1) }, 2F, new ItemStack[] { new ItemStack(Blockss.COMPRESSED_IRON, 1, 0) });
    // turbine blade
    registry.registerPressureChamberRecipe(new Object[] { new ImmutablePair<>("dustRedstone", 2), new ImmutablePair<>("ingotGold", 1) }, 1F, new ItemStack[] { new ItemStack(Itemss.TURBINE_BLADE, 1, 0) });
    // Empty PCB
    registry.registerPressureChamberRecipe(new Object[] { new ItemStack(Itemss.PLASTIC, 1, ItemPlastic.GREEN), new ImmutablePair<>(Names.INGOT_IRON_COMPRESSED, 1) }, 1.5F, new ItemStack[] { new ItemStack(Itemss.EMPTY_PCB, 1, Itemss.EMPTY_PCB.getMaxDamage()) });
    // Etching Acid Bucket
    registry.registerPressureChamberRecipe(new ItemStack[] { new ItemStack(Itemss.PLASTIC, 2, ItemPlastic.GREEN), 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[] { Fluids.getBucketStack(Fluids.ETCHING_ACID) });
    // Transistor
    registry.registerPressureChamberRecipe(new Object[] { new ItemStack(Itemss.PLASTIC, 1, ItemPlastic.BLACK), 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, ItemPlastic.CYAN), new ImmutablePair<>("ingotIronCompressed", 1), new ImmutablePair<>("dustRedstone", 1) }, 1.0F, new ItemStack[] { new ItemStack(Itemss.CAPACITOR) });
    // Pressure enchanting
    registry.registerPressureChamberRecipe(new PressureChamberPressureEnchantHandler());
    // Vacuum dis-enchanting
    registry.registerPressureChamberRecipe(new PressureChamberVacuumEnchantHandler());
}
Also used : IPneumaticRecipeRegistry(me.desht.pneumaticcraft.api.recipe.IPneumaticRecipeRegistry) ItemStack(net.minecraft.item.ItemStack)

Aggregations

IPneumaticRecipeRegistry (me.desht.pneumaticcraft.api.recipe.IPneumaticRecipeRegistry)1 ItemStack (net.minecraft.item.ItemStack)1