diff options
Diffstat (limited to 'src/main/java/Ic2ExpReactorPlanner/components/Reflector.java')
-rw-r--r-- | src/main/java/Ic2ExpReactorPlanner/components/Reflector.java | 64 |
1 files changed, 0 insertions, 64 deletions
diff --git a/src/main/java/Ic2ExpReactorPlanner/components/Reflector.java b/src/main/java/Ic2ExpReactorPlanner/components/Reflector.java deleted file mode 100644 index f0b16f3d14..0000000000 --- a/src/main/java/Ic2ExpReactorPlanner/components/Reflector.java +++ /dev/null @@ -1,64 +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 neutron reflector in a reactor. - * - * @author Brian McCloud - */ -public class Reflector extends ReactorItem { - - private static String mcVersion = "1.12.2"; - - public Reflector(final int id, final String baseName, final GT_ItemStack aStack, final double maxDamage, - final double maxHeat, final String sourceMod) { - super(id, baseName, aStack, maxDamage, maxHeat, sourceMod); - } - - public Reflector(final Reflector other) { - super(other); - } - - @Override - public boolean isNeutronReflector() { - return !isBroken(); - } - - @Override - public double generateHeat() { - ReactorItem component = parent.getComponentAt(row - 1, col); - if (component != null) { - applyDamage(component.getRodCount()); - } - component = parent.getComponentAt(row, col + 1); - if (component != null) { - applyDamage(component.getRodCount()); - } - component = parent.getComponentAt(row + 1, col); - if (component != null) { - applyDamage(component.getRodCount()); - } - component = parent.getComponentAt(row, col - 1); - if (component != null) { - applyDamage(component.getRodCount()); - } - return 0; - } - - @Override - public double getMaxDamage() { - if (maxDamage > 1 && "1.7.10".equals(mcVersion)) { - return maxDamage / 3; - } - return maxDamage; - } - - public static void setMcVersion(String newVersion) { - mcVersion = newVersion; - } -} |