Package forestry.api.fuels

Examples of forestry.api.fuels.GeneratorFuel


    definitionEngineTin.register();
    definitionGenerator.register();

    FluidStack ethanol = LiquidHelper.getLiquid(Defaults.LIQUID_ETHANOL, 1);
    GeneratorFuel ethanolFuel = new GeneratorFuel(ethanol, (int) (32 * GameMode.getGameMode().getFloatSetting("fuel.ethanol.generator")), 4);
    FuelManager.generatorFuel.put(ethanol.getFluid(), ethanolFuel);

    FluidStack biomass = LiquidHelper.getLiquid(Defaults.LIQUID_BIOMASS, 1);
    GeneratorFuel biomassFuel = new GeneratorFuel(biomass, (int) (8 * GameMode.getGameMode().getFloatSetting("fuel.biomass.generator")), 1);
    FuelManager.generatorFuel.put(biomass.getFluid(), biomassFuel);

    Circuit.energyElectricChoke1 = new CircuitElectricChoke("electric.choke.1");
    Circuit.energyFireDampener1 = new CircuitFireDampener("dampener.1");
    Circuit.energyElectricEfficiency1 = new CircuitElectricEfficiency("electric.efficiency.1");
View Full Code Here


    }

    ic2EnergySource.updateEntity();

    if (resourceTank.getFluidAmount() > 0) {
      GeneratorFuel fuel = FuelManager.generatorFuel.get(resourceTank.getFluid());

      if (resourceTank.getFluidAmount() >= fuel.fuelConsumed.amount &&
          ic2EnergySource.getFreeCapacity() >= fuel.eu) {
        ic2EnergySource.addEnergy(fuel.eu);
        this.tickCount++;
View Full Code Here

TOP

Related Classes of forestry.api.fuels.GeneratorFuel

Copyright © 2018 www.massapicom. 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.