diff options
Diffstat (limited to 'src/main/java/Ic2ExpReactorPlanner/components/Condensator.java')
-rw-r--r-- | src/main/java/Ic2ExpReactorPlanner/components/Condensator.java | 48 |
1 files changed, 0 insertions, 48 deletions
diff --git a/src/main/java/Ic2ExpReactorPlanner/components/Condensator.java b/src/main/java/Ic2ExpReactorPlanner/components/Condensator.java deleted file mode 100644 index 2ae559d9c6..0000000000 --- a/src/main/java/Ic2ExpReactorPlanner/components/Condensator.java +++ /dev/null @@ -1,48 +0,0 @@ -/* - * To change this license header, choose License Headers in Project Properties. To change this template file, choose - * Tools | Templates and open the template in the editor. - */ -package Ic2ExpReactorPlanner.components; - -import gregtech.api.objects.GT_ItemStack; - -/** - * Represents a condensator in a reactor, either RSH or LZH. - * - * @author Brian McCloud - */ -public class Condensator extends ReactorItem { - - public Condensator(final int id, final String baseName, GT_ItemStack aItem, final double maxDamage, - final double maxHeat, final String sourceMod) { - super(id, baseName, aItem, maxDamage, maxHeat, sourceMod); - } - - public Condensator(final Condensator other) { - super(other); - } - - @Override - public double adjustCurrentHeat(final double heat) { - if (heat < 0.0) { - return heat; - } - currentCondensatorCooling += heat; - bestCondensatorCooling = Math.max(currentCondensatorCooling, bestCondensatorCooling); - double acceptedHeat = Math.min(heat, getMaxHeat() - heat); - double result = heat - acceptedHeat; - currentHeat += acceptedHeat; - maxReachedHeat = Math.max(maxReachedHeat, currentHeat); - return result; - } - - @Override - public boolean needsCoolantInjected() { - return currentHeat > 0.85 * getMaxHeat(); - } - - @Override - public void injectCoolant() { - currentHeat = 0; - } -} |