diff options
author | Jakub <53441451+kuba6000@users.noreply.github.com> | 2022-08-29 16:04:28 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-29 16:04:28 +0200 |
commit | 7d1f51a8937e0a86486267437d444696e81e8aa0 (patch) | |
tree | a5b145e7271998f7b4b968a2212ed487e54a92b5 /src/main/java/Ic2ExpReactorPlanner/components/Vent.java | |
parent | 5267969156d30b4bb5f4cb2279ebb49db6bd40e2 (diff) | |
download | GT5-Unofficial-7d1f51a8937e0a86486267437d444696e81e8aa0.tar.gz GT5-Unofficial-7d1f51a8937e0a86486267437d444696e81e8aa0.tar.bz2 GT5-Unofficial-7d1f51a8937e0a86486267437d444696e81e8aa0.zip |
Buildscript + Spotless (#318)
* Convert AES.java to readable class
* Buildscript
* Spotless
Diffstat (limited to 'src/main/java/Ic2ExpReactorPlanner/components/Vent.java')
-rw-r--r-- | src/main/java/Ic2ExpReactorPlanner/components/Vent.java | 31 |
1 files changed, 19 insertions, 12 deletions
diff --git a/src/main/java/Ic2ExpReactorPlanner/components/Vent.java b/src/main/java/Ic2ExpReactorPlanner/components/Vent.java index a43383f694..9eb9f3aa66 100644 --- a/src/main/java/Ic2ExpReactorPlanner/components/Vent.java +++ b/src/main/java/Ic2ExpReactorPlanner/components/Vent.java @@ -5,36 +5,43 @@ */ package Ic2ExpReactorPlanner.components; +import gregtech.api.objects.GT_ItemStack; import java.util.ArrayList; import java.util.List; -import gregtech.api.objects.GT_ItemStack; - /** * Represents some kind of vent in a reactor. * @author Brian McCloud */ public class Vent extends ReactorItem { - + private final int selfVent; private final int hullDraw; private final int sideVent; - - public Vent(final int id, final String baseName, GT_ItemStack aItem, final double maxDamage, final double maxHeat, final String sourceMod, - final int selfVent, final int hullDraw, final int sideVent) { + + public Vent( + final int id, + final String baseName, + GT_ItemStack aItem, + final double maxDamage, + final double maxHeat, + final String sourceMod, + final int selfVent, + final int hullDraw, + final int sideVent) { super(id, baseName, aItem, maxDamage, maxHeat, sourceMod); this.selfVent = selfVent; this.hullDraw = hullDraw; this.sideVent = sideVent; } - + public Vent(final Vent other) { super(other); this.selfVent = other.selfVent; this.hullDraw = other.hullDraw; this.sideVent = other.sideVent; } - + @Override public double dissipate() { double deltaHeat = Math.min(hullDraw, parent.getCurrentHeat()); @@ -73,7 +80,7 @@ public class Vent extends ReactorItem { bestVentCooling = Math.max(bestVentCooling, currentVentCooling); return currentDissipation; } - + @Override public double getVentCoolingCapacity() { double result = selfVent; @@ -97,14 +104,14 @@ public class Vent extends ReactorItem { } return result; } - + @Override public double getHullCoolingCapacity() { return hullDraw; } - + @Override public double getCurrentOutput() { return currentVentCooling; } - } +} |