Examples of ICoolant


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

Examples of buildcraft.api.fuels.ICoolant

    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
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.