Search in sources :

Example 1 with IStillManager

use of forestry.api.recipes.IStillManager in project Binnie by ForestryMC.

the class ModuleCore method doInit.

@Override
public void doInit() {
    if (ConfigurationMain.hopeField) {
        VillageCreationExtraTrees villageHandler = new VillageCreationExtraTrees();
        VillagerRegistry villagerRegistry = VillagerRegistry.instance();
        villagerRegistry.registerVillageCreationHandler(villageHandler);
    }
    Food.CRABAPPLE.addJuice(10, 150, 10);
    Food.ORANGE.addJuice(10, 400, 15);
    Food.KUMQUAT.addJuice(10, 300, 10);
    Food.LIME.addJuice(10, 300, 10);
    Food.WILD_CHERRY.addOil(20, 50, 5);
    Food.SOUR_CHERRY.addOil(20, 50, 3);
    Food.BLACK_CHERRY.addOil(20, 50, 5);
    Food.Blackthorn.addJuice(10, 50, 5);
    Food.CHERRY_PLUM.addJuice(10, 100, 60);
    Food.ALMOND.addOil(20, 80, 5);
    Food.APRICOT.addJuice(10, 150, 40);
    Food.GRAPEFRUIT.addJuice(10, 500, 15);
    Food.PEACH.addJuice(10, 150, 40);
    Food.SATSUMA.addJuice(10, 300, 10);
    Food.BUDDHA_HAND.addJuice(10, 400, 15);
    Food.CITRON.addJuice(10, 400, 15);
    Food.FINGER_LIME.addJuice(10, 300, 10);
    Food.KEY_LIME.addJuice(10, 300, 10);
    Food.MANDERIN.addJuice(10, 400, 10);
    Food.NECTARINE.addJuice(10, 150, 40);
    Food.POMELO.addJuice(10, 300, 10);
    Food.TANGERINE.addJuice(10, 300, 10);
    Food.PEAR.addJuice(10, 300, 20);
    Food.SAND_PEAR.addJuice(10, 200, 10);
    Food.HAZELNUT.addOil(20, 150, 5);
    Food.BUTTERNUT.addOil(20, 180, 5);
    Food.BEECHNUT.addOil(20, 100, 4);
    Food.PECAN.addOil(29, 50, 2);
    Food.BANANA.addJuice(10, 100, 30);
    Food.RED_BANANA.addJuice(10, 100, 30);
    Food.PLANTAIN.addJuice(10, 100, 40);
    Food.BRAZIL_NUT.addOil(20, 20, 2);
    Food.FIG.addOil(20, 50, 3);
    Food.ACORN.addOil(20, 50, 3);
    Food.ELDERBERRY.addJuice(10, 100, 5);
    Food.OLIVE.addOil(20, 50, 3);
    Food.GINGKO_NUT.addOil(20, 50, 5);
    Food.COFFEE.addOil(15, 20, 2);
    Food.OSANGE_ORANGE.addJuice(10, 300, 15);
    Food.CLOVE.addOil(10, 25, 2);
    Food.COCONUT.addOil(20, 300, 25);
    Food.CASHEW.addJuice(10, 150, 15);
    Food.AVACADO.addJuice(10, 300, 15);
    Food.NUTMEG.addOil(20, 50, 10);
    Food.ALLSPICE.addOil(20, 50, 10);
    Food.CHILLI.addJuice(10, 100, 10);
    Food.STAR_ANISE.addOil(20, 100, 10);
    Food.MANGO.addJuice(10, 400, 20);
    Food.STARFRUIT.addJuice(10, 300, 10);
    Food.CANDLENUT.addJuice(20, 50, 10);
    RecipeUtil recipeUtil = new RecipeUtil(Constants.EXTRA_TREES_MOD_ID);
    MinecraftForge.addGrassSeed(new ItemStack(itemHops), 5);
    recipeUtil.addRecipe("durable_hammer", new ItemStack(itemDurableHammer, 1, 0), "wiw", " s ", " s ", 'w', Blocks.OBSIDIAN, 'i', Items.GOLD_INGOT, 's', Items.STICK);
    recipeUtil.addRecipe("hammer", new ItemStack(itemHammer, 1, 0), "wiw", " s ", " s ", 'w', "plankWood", 'i', Items.IRON_INGOT, 's', Items.STICK);
    recipeUtil.addRecipe("yeast", ExtraTreeItems.YEAST.get(8), " m ", "mbm", 'b', Items.BREAD, 'm', Blocks.BROWN_MUSHROOM);
    recipeUtil.addRecipe("lager_yeast", ExtraTreeItems.LAGER_YEAST.get(8), "mbm", " m ", 'b', Items.BREAD, 'm', Blocks.BROWN_MUSHROOM);
    recipeUtil.addRecipe("grain_wheat", ExtraTreeItems.GRAIN_WHEAT.get(5), " s ", "sss", " s ", 's', Items.WHEAT_SEEDS);
    recipeUtil.addRecipe("grain_barley", ExtraTreeItems.GRAIN_BARLEY.get(3), false, " s ", "s  ", " s ", 's', ExtraTreeItems.GRAIN_WHEAT.get(1));
    recipeUtil.addRecipe("grain_corn", ExtraTreeItems.GRAIN_CORN.get(3), false, " s ", "  s", " s ", 's', ExtraTreeItems.GRAIN_WHEAT.get(1));
    recipeUtil.addRecipe("grain_rye", ExtraTreeItems.GRAIN_RYE.get(3), "   ", "s s", " s ", 's', ExtraTreeItems.GRAIN_WHEAT.get(1));
    recipeUtil.addRecipe("proven_gear", ExtraTreeItems.PROVEN_GEAR.get(1), " s ", "s s", " s ", 's', Mods.Forestry.stack("oak_stick"));
    recipeUtil.addRecipe("glass_fitting", ExtraTreeItems.GLASS_FITTING.get(6), "s s", " i ", "s s", 'i', Items.IRON_INGOT, 's', Items.STICK);
    GameRegistry.addSmelting(ExtraTreeItems.GRAIN_WHEAT.get(1), ExtraTreeItems.GRAIN_ROASTED.get(1), 0.0f);
    GameRegistry.addSmelting(ExtraTreeItems.GRAIN_RYE.get(1), ExtraTreeItems.GRAIN_ROASTED.get(1), 0.0f);
    GameRegistry.addSmelting(ExtraTreeItems.GRAIN_CORN.get(1), ExtraTreeItems.GRAIN_ROASTED.get(1), 0.0f);
    GameRegistry.addSmelting(ExtraTreeItems.GRAIN_BARLEY.get(1), ExtraTreeItems.GRAIN_ROASTED.get(1), 0.0f);
    try {
        final Item minium = (Item) Class.forName("com.pahimar.ee3.lib.ItemIds").getField("minium_shard").get(null);
        recipeUtil.addShapelessRecipe("papayimar", Food.PAPAYIMAR.get(1), minium, "cropPapaya");
    } catch (Exception ignored) {
    }
    ICarpenterManager carpenterManager = RecipeManagers.carpenterManager;
    IStillManager stillManager = RecipeManagers.stillManager;
    stillManager.addRecipe(25, ExtraTreeLiquid.Resin.get(5), ExtraTreeLiquid.Turpentine.get(3));
    carpenterManager.addRecipe(25, ExtraTreeLiquid.Turpentine.get(50), ItemStack.EMPTY, itemMisc.getStack(ExtraTreeItems.WOOD_WAX, 4), "x", 'x', Mods.Forestry.stack("beeswax"));
    FluidStack creosoteOil = Binnie.LIQUID.getFluidStack(ManagerLiquid.CREOSOTE, 50);
    if (creosoteOil != null) {
        carpenterManager.addRecipe(25, creosoteOil, ItemStack.EMPTY, itemMisc.getStack(ExtraTreeItems.WOOD_WAX, 1), "x", 'x', Mods.Forestry.stack("beeswax"));
    }
    FuelManager.bronzeEngineFuel.put(ExtraTreeLiquid.Sap.get(1).getFluid(), new EngineBronzeFuel(ExtraTreeLiquid.Sap.get(1).getFluid(), 20, 10000, 1));
    FuelManager.bronzeEngineFuel.put(ExtraTreeLiquid.Resin.get(1).getFluid(), new EngineBronzeFuel(ExtraTreeLiquid.Resin.get(1).getFluid(), 30, 10000, 1));
}
Also used : Item(net.minecraft.item.Item) VillageCreationExtraTrees(binnie.extratrees.village.VillageCreationExtraTrees) FluidStack(net.minecraftforge.fluids.FluidStack) VillagerRegistry(net.minecraftforge.fml.common.registry.VillagerRegistry) EngineBronzeFuel(forestry.api.fuels.EngineBronzeFuel) ICarpenterManager(forestry.api.recipes.ICarpenterManager) IStillManager(forestry.api.recipes.IStillManager) ItemStack(net.minecraft.item.ItemStack) RecipeUtil(binnie.core.util.RecipeUtil)

Aggregations

RecipeUtil (binnie.core.util.RecipeUtil)1 VillageCreationExtraTrees (binnie.extratrees.village.VillageCreationExtraTrees)1 EngineBronzeFuel (forestry.api.fuels.EngineBronzeFuel)1 ICarpenterManager (forestry.api.recipes.ICarpenterManager)1 IStillManager (forestry.api.recipes.IStillManager)1 Item (net.minecraft.item.Item)1 ItemStack (net.minecraft.item.ItemStack)1 FluidStack (net.minecraftforge.fluids.FluidStack)1 VillagerRegistry (net.minecraftforge.fml.common.registry.VillagerRegistry)1