blob: d8adb443104019d2706a807dd611da3469cf87a9 [file] [log] [blame] [raw]
package buildcraft.api.fuels;
import java.util.LinkedList;
import buildcraft.api.liquids.LiquidStack;
public class IronEngineCoolant {
public static LinkedList<IronEngineCoolant> coolants = new LinkedList<IronEngineCoolant>();
public static IronEngineCoolant getCoolantForLiquid(LiquidStack liquid) {
if(liquid == null)
return null;
if(liquid.itemID <= 0)
return null;
for(IronEngineCoolant coolant : coolants)
if(coolant.liquid.isLiquidEqual(liquid))
return coolant;
return null;
}
public final LiquidStack liquid;
public final float coolingPerUnit;
public IronEngineCoolant(LiquidStack liquid, float coolingPerUnit) {
this.liquid = liquid;
this.coolingPerUnit = coolingPerUnit;
}
}