From ac2f4f03177989bb42955c49fb2928d011804abe Mon Sep 17 00:00:00 2001 From: kekzdealer Date: Sun, 13 Oct 2019 16:48:54 +0200 Subject: Changed storage field block recipes to desync circuit and pump tier and prevent overlap with fluid regulator recipe. --- .../java/tileentities/GTMTE_SOFuelCellMK1.java | 40 +++++++++++++--------- .../java/tileentities/GTMTE_SOFuelCellMK2.java | 40 +++++++++++++--------- 2 files changed, 48 insertions(+), 32 deletions(-) (limited to 'src/main/java/tileentities') diff --git a/src/main/java/tileentities/GTMTE_SOFuelCellMK1.java b/src/main/java/tileentities/GTMTE_SOFuelCellMK1.java index 461046a2c3..549bc19f72 100644 --- a/src/main/java/tileentities/GTMTE_SOFuelCellMK1.java +++ b/src/main/java/tileentities/GTMTE_SOFuelCellMK1.java @@ -4,6 +4,8 @@ import java.util.ArrayList; import java.util.Collection; import java.util.Iterator; +import org.lwjgl.input.Keyboard; + import blocks.Block_YSZUnit; import gregtech.api.GregTech_API; import gregtech.api.enums.Materials; @@ -17,6 +19,7 @@ import gregtech.api.objects.GT_RenderedTexture; import gregtech.api.util.GT_ModHandler; import gregtech.api.util.GT_Recipe; import gregtech.api.util.GT_Utility; +import kekztech.MultiBlockTooltipBuilder; import gregtech.api.util.GT_Recipe.GT_Recipe_Map; import net.minecraft.block.Block; import net.minecraft.entity.player.InventoryPlayer; @@ -53,22 +56,27 @@ public class GTMTE_SOFuelCellMK1 extends GT_MetaTileEntity_MultiBlockBase { @Override public String[] getDescription() { - return new String[] { - "Oxidizes gas fuels to generate electricity without polluting the environment", - "Consumes 29,480EU worth of fuel with up to 97% efficiency each second", - "Steam production requires the SOFC to heat up completely first", - "Outputs " + EU_PER_TICK + "EU/t and " + STEAM_PER_TICK + "L/t Steam", - "Additionally requires " + OXYGEN_PER_TICK + "L/t Oxygen gas", - "------------------------------------------", - "Dimensions: 3x3x5 (WxHxL)", - "Structure:", - " Controller: Front center", - " Dynamo Hatch: Back center", - " 3x YSZ Ceramic Electrolyte Unit: Center 1x1x3", - " 12x Clean Stainless Steel Machine Casing (at least)", - " 6x Reinforced Glass: Touching the Electrolyte Units on the horizontal sides", - " Maintenance Hatch, I/O Hatches: Instead of any casing" - }; + final MultiBlockTooltipBuilder b = new MultiBlockTooltipBuilder(); + b.addInfo("Oxidizes gas fuels to generate electricity without polluting the environment") + .addInfo("Consumes 29,480EU worth of fuel with up to 97% efficiency each second") + .addInfo("Steam production requires the SOFC to heat up completely first") + .addInfo("Outputs " + EU_PER_TICK + "EU/t and " + STEAM_PER_TICK + "L/t Steam") + .addInfo("Additionally requires " + OXYGEN_PER_TICK + "L/t Oxygen gas") + .addSeparator() + .beginStructureBlock(3, 3, 5) + .addController("Front Center") + .addDynamoHatch("Back Center") + .addOtherStructurePart("YSZ Ceramic Electrolyte Unit", "3x, Center 1x1x3") + .addOtherStructurePart("Reinforced Glass", "6x, touching the electrolyte units on the horizontal sides") + .addCasingInfo("Clean Stainless Steel Casing", 12) + .addMaintenanceHatch("Instead of any casing") + .addIOHatches("Instead of any casing") + .signAndFinalize("Kekzdealer"); + if(!Keyboard.isKeyDown(Keyboard.KEY_LSHIFT)) { + return b.getInformation(); + } else { + return b.getStructureInformation(); + } } @Override diff --git a/src/main/java/tileentities/GTMTE_SOFuelCellMK2.java b/src/main/java/tileentities/GTMTE_SOFuelCellMK2.java index 3708ef8cc4..8d1f996cb8 100644 --- a/src/main/java/tileentities/GTMTE_SOFuelCellMK2.java +++ b/src/main/java/tileentities/GTMTE_SOFuelCellMK2.java @@ -4,6 +4,8 @@ import java.util.ArrayList; import java.util.Collection; import java.util.Iterator; +import org.lwjgl.input.Keyboard; + import blocks.Block_GDCUnit; import gregtech.api.GregTech_API; import gregtech.api.enums.Materials; @@ -17,6 +19,7 @@ import gregtech.api.objects.GT_RenderedTexture; import gregtech.api.util.GT_Recipe; import gregtech.api.util.GT_Utility; import gregtech.api.util.GT_Recipe.GT_Recipe_Map; +import kekztech.MultiBlockTooltipBuilder; import net.minecraft.block.Block; import net.minecraft.entity.player.InventoryPlayer; import net.minecraft.item.ItemStack; @@ -53,22 +56,27 @@ public class GTMTE_SOFuelCellMK2 extends GT_MetaTileEntity_MultiBlockBase { @Override public String[] getDescription() { - return new String[] { - "Oxidizes gas fuels to generate electricity without polluting the environment", - "Consumes 442,200EU worth of fuel with up to 160% efficiency each second", - "Steam production requires the SOFC to heat up completely first", - "Outputs " + EU_PER_TICK + "EU/t and " + STEAM_PER_TICK + "L/t Superheated Steam", - "Additionally requires " + OXYGEN_PER_TICK + "L/t Oxygen gas", - "------------------------------------------", - "Dimensions: 3x3x5 (WxHxL)", - "Structure:", - " Controller front center", - " Dynamo Hatch back center", - " 3x GDC Ceramic Electrolyte Unit (center 1x1x3)", - " 12x Robust Tungstensteel Machine Casing (at least)", - " 6x Reinforced Glass: Touching the Electrolyte Units on the horizontal sides", - " Maintenance Hatch, I/O Hatches: Instead of any casing" - }; + final MultiBlockTooltipBuilder b = new MultiBlockTooltipBuilder(); + b.addInfo("Oxidizes gas fuels to generate electricity without polluting the environment") + .addInfo("Consumes 442,200EU worth of fuel with up to 97% efficiency each second") + .addInfo("Steam production requires the SOFC to heat up completely first") + .addInfo("Outputs " + EU_PER_TICK + "EU/t and " + STEAM_PER_TICK + "L/t Steam") + .addInfo("Additionally requires " + OXYGEN_PER_TICK + "L/t Oxygen gas") + .addSeparator() + .beginStructureBlock(3, 3, 5) + .addController("Front Center") + .addDynamoHatch("Back Center") + .addOtherStructurePart("GDC Ceramic Electrolyte Unit", "3x, Center 1x1x3") + .addOtherStructurePart("Reinforced Glass", "6x, touching the electrolyte units on the horizontal sides") + .addCasingInfo("Robust Tungstensteel Machine Casing", 12) + .addMaintenanceHatch("Instead of any casing") + .addIOHatches("Instead of any casing") + .signAndFinalize("Kekzdealer"); + if(!Keyboard.isKeyDown(Keyboard.KEY_LSHIFT)) { + return b.getInformation(); + } else { + return b.getStructureInformation(); + } } @Override -- cgit