diff options
author | Kogepan229 <73163994+Kogepan229@users.noreply.github.com> | 2024-11-17 02:57:39 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-16 17:57:39 +0000 |
commit | 77b7b9022962e5bedc9179bcb0f3e79bcde3d8aa (patch) | |
tree | 12cd6a5593b7c2f57df760b1e2e96c59ac3b4632 /src/main/java | |
parent | 5e3713627c58e4559100f09f09585c4bdfe94fb3 (diff) | |
download | GT5-Unofficial-77b7b9022962e5bedc9179bcb0f3e79bcde3d8aa.tar.gz GT5-Unofficial-77b7b9022962e5bedc9179bcb0f3e79bcde3d8aa.tar.bz2 GT5-Unofficial-77b7b9022962e5bedc9179bcb0f3e79bcde3d8aa.zip |
Add throughput to Wireless Energy Hatch tooltip (#3506)
Co-authored-by: Maya <10861407+serenibyss@users.noreply.github.com>
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/tectech/thing/metaTileEntity/hatch/MTEHatchWirelessMulti.java | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/main/java/tectech/thing/metaTileEntity/hatch/MTEHatchWirelessMulti.java b/src/main/java/tectech/thing/metaTileEntity/hatch/MTEHatchWirelessMulti.java index 6c737a7d2a..2c2ed36bc3 100644 --- a/src/main/java/tectech/thing/metaTileEntity/hatch/MTEHatchWirelessMulti.java +++ b/src/main/java/tectech/thing/metaTileEntity/hatch/MTEHatchWirelessMulti.java @@ -3,11 +3,13 @@ package tectech.thing.metaTileEntity.hatch; import static com.gtnewhorizon.gtnhlib.util.AnimatedTooltipHandler.BLUE; import static com.gtnewhorizon.gtnhlib.util.AnimatedTooltipHandler.BOLD; import static com.gtnewhorizon.gtnhlib.util.AnimatedTooltipHandler.GRAY; +import static com.gtnewhorizon.gtnhlib.util.AnimatedTooltipHandler.YELLOW; import static gregtech.api.enums.GTValues.AuthorColen; import static gregtech.api.enums.GTValues.V; import static gregtech.common.misc.WirelessNetworkManager.addEUToGlobalEnergyMap; import static gregtech.common.misc.WirelessNetworkManager.strongCheckOrAddUser; import static java.lang.Long.min; +import static net.minecraft.util.StatCollector.translateToLocal; import java.math.BigInteger; import java.util.UUID; @@ -22,6 +24,7 @@ import gregtech.api.interfaces.ITexture; import gregtech.api.interfaces.tileentity.IGregTechTileEntity; import gregtech.api.interfaces.tileentity.IWirelessEnergyHatchInformation; import gregtech.api.metatileentity.MetaTileEntity; +import gregtech.api.util.GTUtility; import tectech.thing.metaTileEntity.Textures; import tectech.util.TTUtility; @@ -54,7 +57,12 @@ public class MTEHatchWirelessMulti extends MTEHatchEnergyMulti implements IWirel 0, new String[] { GRAY + "Stores energy globally in a network, up to 2^(2^31) EU.", GRAY + "Does not connect to wires. This block withdraws EU from the network.", - AuthorColen + GRAY + BOLD + " & " + BLUE + BOLD + "Cloud" }, + AuthorColen + GRAY + BOLD + " & " + BLUE + BOLD + "Cloud", + translateToLocal("gt.blockmachines.hatch.energytunnel.desc.1") + ": " + + YELLOW + + GTUtility.formatNumbers(aAmp * V[aTier]) + + GRAY + + " EU/t" }, aAmp); TTUtility.setTier(aTier, this); } |