Package buildcraft.api.fuels

Examples of buildcraft.api.fuels.ICoolant


    if(fluid == null) {
      return null;
    }
    IFluidCoolant res = coolants.get(fluid.getName());
    if(res == null && !coolants.containsKey(fluid.getName()) && BuildcraftFuelRegistry.coolant != null) {
      ICoolant bcCool = BuildcraftFuelRegistry.coolant.getCoolant(fluid);
      if(bcCool != null) {
        res = new CoolantBC(bcCool);
      }
      coolants.put(fluid.getName(), res);
    }   
View Full Code Here


    if (coolant == null) {
      return;
    }

    int coolantAmount = Math.min(MAX_COOLANT_PER_TICK, coolant.amount);
    ICoolant currentCoolant = BuildcraftFuelRegistry.coolant.getCoolant(coolant.getFluid());
    if (currentCoolant != null) {
      float cooling = currentCoolant.getDegreesCoolingPerMB(heat);
      cooling /= getBiomeTempScalar();
      if (coolantAmount * cooling > extraHeat) {
        tankCoolant.drain(Math.round(extraHeat / cooling), true);
        heat -= extraHeat;
      } else {
View Full Code Here

TOP

Related Classes of buildcraft.api.fuels.ICoolant

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.