diff options
author | miozune <miozune@gmail.com> | 2023-12-04 08:11:34 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-04 00:11:34 +0100 |
commit | 981df39ed10c780e38d91503de42dcd46c2e47e4 (patch) | |
tree | 13591ba87d0eb3bff575a405a3cd25360d3dd961 /src/main/java/goodgenerator/api/recipe/ExtremeHeatExchangerRecipe.java | |
parent | c8fc878cd693b454d500f1cae611a363b59914ea (diff) | |
download | GT5-Unofficial-981df39ed10c780e38d91503de42dcd46c2e47e4.tar.gz GT5-Unofficial-981df39ed10c780e38d91503de42dcd46c2e47e4.tar.bz2 GT5-Unofficial-981df39ed10c780e38d91503de42dcd46c2e47e4.zip |
Migrate to new RecipeMap (#219)
* Migrate GG recipemaps
* Migrate the rest
* Split classes, renames, more adapt to GT changes
* Update GT to adapt to MaceratorBackend removal
* update gradle+deps+bs
---------
Co-authored-by: Martin Robertz <dream-master@gmx.net>
Co-authored-by: BlueWeabo <ilia.iliev2005@gmail.com>
Diffstat (limited to 'src/main/java/goodgenerator/api/recipe/ExtremeHeatExchangerRecipe.java')
-rw-r--r-- | src/main/java/goodgenerator/api/recipe/ExtremeHeatExchangerRecipe.java | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/src/main/java/goodgenerator/api/recipe/ExtremeHeatExchangerRecipe.java b/src/main/java/goodgenerator/api/recipe/ExtremeHeatExchangerRecipe.java new file mode 100644 index 0000000000..4a32e882f8 --- /dev/null +++ b/src/main/java/goodgenerator/api/recipe/ExtremeHeatExchangerRecipe.java @@ -0,0 +1,66 @@ +package goodgenerator.api.recipe; + +import net.minecraftforge.fluids.Fluid; +import net.minecraftforge.fluids.FluidStack; + +import gregtech.api.util.GT_Recipe; + +public class ExtremeHeatExchangerRecipe extends GT_Recipe { + + public ExtremeHeatExchangerRecipe(FluidStack[] input, FluidStack[] output, int special) { + super(false, null, null, null, null, input, output, 0, 0, special); + } + + public int getMaxHotFluidConsume() { + if (this.mFluidInputs != null) { + return this.mFluidInputs[0].amount; + } + return 0; + } + + public Fluid getNormalSteam() { + if (this.mFluidOutputs != null) { + return this.mFluidOutputs[0].getFluid(); + } + return null; + } + + public Fluid getHeatedSteam() { + if (this.mFluidOutputs != null) { + return this.mFluidOutputs[1].getFluid(); + } + return null; + } + + public Fluid getCooledFluid() { + if (this.mFluidOutputs != null) { + return this.mFluidOutputs[2].getFluid(); + } + return null; + } + + public int getEUt() { + if (getNormalSteam() != null) { + switch (getNormalSteam().getName()) { + case "steam": { + int tVal = this.mFluidInputs[1].amount * 4; + if (tVal < 0) tVal = -tVal; + return tVal; + } + case "ic2superheatedsteam": { + int tVal = this.mFluidInputs[1].amount * 8; + if (tVal < 0) tVal = -tVal; + return tVal; + } + case "supercriticalsteam": { + int tVal = this.mFluidInputs[1].amount * 800; + if (tVal < 0) tVal = -tVal; + return tVal; + } + default: + return 0; + } + } + return 0; + } +} |