Examples of RainSubstrate


Examples of forestry.api.fuels.RainSubstrate

        Defaults.ENGINE_FUEL_VALUE_HONEY, Defaults.ENGINE_CYCLE_DURATION_HONEY, 1));
    FuelManager.bronzeEngineFuel.put(LiquidHelper.getFluid(Defaults.LIQUID_JUICE), new EngineBronzeFuel(LiquidHelper.getFluid(Defaults.LIQUID_JUICE),
        Defaults.ENGINE_FUEL_VALUE_JUICE, Defaults.ENGINE_CYCLE_DURATION_JUICE, 1));

    // Set rain substrates
    FuelManager.rainSubstrate.put(ForestryItem.iodineCharge.getItemStack(), new RainSubstrate(ForestryItem.iodineCharge.getItemStack(),
        Defaults.RAINMAKER_RAIN_DURATION_IODINE, 0.01f));
    FuelManager.rainSubstrate.put(ForestryItem.craftingMaterial.getItemStack(1, 4), new RainSubstrate(ForestryItem.craftingMaterial.getItemStack(1, 4), 0.075f));

    // Set additional apiary flowers
    for (int i = 0; i < 9; i++)
      FlowerManager.plainFlowers.add(new ItemStack(Blocks.red_flower, 1, i));
    FlowerManager.plainFlowers.add(new ItemStack(Blocks.yellow_flower));
View Full Code Here

Examples of forestry.api.fuels.RainSubstrate

    if (player.inventory.getCurrentItem() == null)
      return;

    // We don't have a gui, but we can be activated
    if (FuelManager.rainSubstrate.containsKey(player.inventory.getCurrentItem()) && charge == 0) {
      RainSubstrate substrate = FuelManager.rainSubstrate.get(player.inventory.getCurrentItem());
      if (substrate.item.isItemEqual(player.inventory.getCurrentItem())) {
        addCharge(substrate);
        player.inventory.getCurrentItem().stackSize--;
      }
    }
View Full Code Here

Examples of forestry.api.fuels.RainSubstrate

      return 0;

    if (!FuelManager.rainSubstrate.containsKey(stack))
      return 0;

    RainSubstrate substrate = FuelManager.rainSubstrate.get(stack);
    if (!substrate.item.isItemEqual(stack))
      return 0;

    if (doAdd)
      addCharge(substrate);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.