diff options
author | Alexdoru <57050655+Alexdoru@users.noreply.github.com> | 2024-10-14 14:46:59 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-14 12:46:59 +0000 |
commit | e6c8d35894d561e6aea1cfb7450f00a70c9e01d8 (patch) | |
tree | 700dec83ddcd7f7b9b8f0b90cad30cc2cb33b38f /src/main/java/gtnhlanth | |
parent | d3a4a52483aa8b069925dc55fd680f965b59f133 (diff) | |
download | GT5-Unofficial-e6c8d35894d561e6aea1cfb7450f00a70c9e01d8.tar.gz GT5-Unofficial-e6c8d35894d561e6aea1cfb7450f00a70c9e01d8.tar.bz2 GT5-Unofficial-e6c8d35894d561e6aea1cfb7450f00a70c9e01d8.zip |
Multi ToolTip unification (#3343)
Co-authored-by: chochem <40274384+chochem@users.noreply.github.com>
Co-authored-by: GDCloud <gdcloudstrike@gmail.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Martin Robertz <dream-master@gmx.net>
Diffstat (limited to 'src/main/java/gtnhlanth')
7 files changed, 7 insertions, 28 deletions
diff --git a/src/main/java/gtnhlanth/common/tileentity/MTEDigester.java b/src/main/java/gtnhlanth/common/tileentity/MTEDigester.java index 9e1fc65c1b..d6bf06a4e9 100644 --- a/src/main/java/gtnhlanth/common/tileentity/MTEDigester.java +++ b/src/main/java/gtnhlanth/common/tileentity/MTEDigester.java @@ -206,10 +206,7 @@ public class MTEDigester extends MTEEnhancedMultiBlockBase<MTEDigester> implemen protected MultiblockTooltipBuilder createTooltip() { final MultiblockTooltipBuilder tt = new MultiblockTooltipBuilder(); tt.addMachineType("Digester") - .addInfo("Controller block for the Digester") .addInfo("Input ores and fluid, output water.") - .addInfo(DescTextLocalization.BLUEPRINT_INFO) - .addSeparator() .addController("Front bottom") .addInputHatch("Hint block with dot 1") .addInputBus("Hint block with dot 1") @@ -217,7 +214,7 @@ public class MTEDigester extends MTEEnhancedMultiBlockBase<MTEDigester> implemen .addOutputBus("Hint block with dot 1") .addMaintenanceHatch("Hint block with dot 1") .addMufflerHatch("Hint block with dot 1") - .toolTipFinisher("GTNH: Lanthanides"); + .toolTipFinisher(); return tt; } diff --git a/src/main/java/gtnhlanth/common/tileentity/MTEDissolutionTank.java b/src/main/java/gtnhlanth/common/tileentity/MTEDissolutionTank.java index 7d5a64b579..1031d05dba 100644 --- a/src/main/java/gtnhlanth/common/tileentity/MTEDissolutionTank.java +++ b/src/main/java/gtnhlanth/common/tileentity/MTEDissolutionTank.java @@ -236,18 +236,15 @@ public class MTEDissolutionTank extends MTEEnhancedMultiBlockBase<MTEDissolution protected MultiblockTooltipBuilder createTooltip() { final MultiblockTooltipBuilder tt = new MultiblockTooltipBuilder(); tt.addMachineType("Dissolution Tank") - .addInfo("Controller block for the Dissolution Tank") .addInfo("Input Water and Fluid, output Fluid") .addInfo("You must input the Fluids at the correct Ratio") - .addInfo(DescTextLocalization.BLUEPRINT_INFO) - .addSeparator() .addController("Front bottom") .addInputHatch("Hint block with dot 1") .addInputBus("Hint block with dot 1") .addOutputHatch("Hint block with dot 1") .addOutputBus("Hint block with dot 1") .addMaintenanceHatch("Hint block with dot 1") - .toolTipFinisher("GTNH: Lanthanides"); + .toolTipFinisher(); return tt; } diff --git a/src/main/java/gtnhlanth/common/tileentity/MTELINAC.java b/src/main/java/gtnhlanth/common/tileentity/MTELINAC.java index 652529c303..7ae15db3aa 100644 --- a/src/main/java/gtnhlanth/common/tileentity/MTELINAC.java +++ b/src/main/java/gtnhlanth/common/tileentity/MTELINAC.java @@ -183,7 +183,6 @@ public class MTELINAC extends MTEEnhancedMultiBlockBase<MTELINAC> implements ISu .addInfo("Use a lower temperature coolant to improve output focus") .addInfo("Output energy does not scale for input energies higher than 7500 keV") // .addInfo("Extendable, with a minimum length of 18 blocks") - .addInfo(DescTextLocalization.BLUEPRINT_INFO) .addInfo(DescTextLocalization.BEAMLINE_SCANNER_INFO) .addInfo("Valid Coolants:"); @@ -197,7 +196,6 @@ public class MTELINAC extends MTEEnhancedMultiBlockBase<MTELINAC> implements ISu } tt.addInfo("Requires (length + 1)kL/s of coolant") - .addSeparator() .beginVariableStructureBlock(7, 7, 7, 7, 19, 83, false) .addController("Front bottom") .addCasingInfoRange(LanthItemList.SHIELDED_ACCELERATOR_CASING.getLocalizedName(), 325, 1285, false) @@ -213,8 +211,7 @@ public class MTELINAC extends MTEEnhancedMultiBlockBase<MTELINAC> implements ISu .addOutputHatch(addDotText(2)) .addOtherStructurePart("Beamline Input Hatch", addDotText(3)) .addOtherStructurePart("Beamline Output Hatch", addDotText(4)) - - .toolTipFinisher("GTNH: Lanthanides"); + .toolTipFinisher(); return tt; } diff --git a/src/main/java/gtnhlanth/common/tileentity/MTESourceChamber.java b/src/main/java/gtnhlanth/common/tileentity/MTESourceChamber.java index 3c1984171f..8fb94d505c 100644 --- a/src/main/java/gtnhlanth/common/tileentity/MTESourceChamber.java +++ b/src/main/java/gtnhlanth/common/tileentity/MTESourceChamber.java @@ -12,7 +12,6 @@ import static gregtech.api.enums.Textures.BlockIcons.OVERLAY_FRONT_OIL_CRACKER_A import static gregtech.api.enums.Textures.BlockIcons.OVERLAY_FRONT_OIL_CRACKER_GLOW; import static gregtech.api.enums.Textures.BlockIcons.casingTexturePages; import static gregtech.api.util.GTStructureUtility.buildHatchAdder; -import static gtnhlanth.util.DescTextLocalization.BLUEPRINT_INFO; import static gtnhlanth.util.DescTextLocalization.addDotText; import java.util.ArrayList; @@ -125,11 +124,8 @@ public class MTESourceChamber extends MTEEnhancedMultiBlockBase<MTESourceChamber protected MultiblockTooltipBuilder createTooltip() { final MultiblockTooltipBuilder tt = new MultiblockTooltipBuilder(); tt.addMachineType("Particle Source") - .addInfo("Controller block for the Source Chamber") .addInfo("Output energy scales with EU/t up to the point shown in the recipe") - .addInfo(BLUEPRINT_INFO) .addInfo(DescTextLocalization.BEAMLINE_SCANNER_INFO) - .addSeparator() .beginStructureBlock(5, 5, 6, true) .addController("Front bottom") .addCasingInfoExactly(LanthItemList.SHIELDED_ACCELERATOR_CASING.getLocalizedName(), 56, false) @@ -140,7 +136,7 @@ public class MTESourceChamber extends MTEEnhancedMultiBlockBase<MTESourceChamber .addMaintenanceHatch(addDotText(3)) .addInputBus(addDotText(1)) .addOutputBus(addDotText(2)) - .toolTipFinisher("GTNH: Lanthanides"); + .toolTipFinisher(); return tt; } diff --git a/src/main/java/gtnhlanth/common/tileentity/MTESynchrotron.java b/src/main/java/gtnhlanth/common/tileentity/MTESynchrotron.java index 0aae0f0f7b..dfecdcd71e 100644 --- a/src/main/java/gtnhlanth/common/tileentity/MTESynchrotron.java +++ b/src/main/java/gtnhlanth/common/tileentity/MTESynchrotron.java @@ -492,12 +492,10 @@ public class MTESynchrotron extends MTEEnhancedMultiBlockBase<MTESynchrotron> im protected MultiblockTooltipBuilder createTooltip() { final MultiblockTooltipBuilder tt = new MultiblockTooltipBuilder(); tt.addMachineType("Particle Accelerator") - .addInfo("Controller block for the Synchrotron") .addInfo("Torus-shaped, accelerates electrons to produce high-energy electromagnetic radiation,") .addInfo("in the form of photons") .addInfo("Antenna Casings can be one of two tiers, upgrade them to improve output rate and energy scaling") .addInfo("Minimum input focus: " + MIN_INPUT_FOCUS) - .addInfo(DescTextLocalization.BLUEPRINT_INFO) .addInfo(DescTextLocalization.BEAMLINE_SCANNER_INFO) .addInfo("Use a lower temperature coolant to improve output focus") @@ -513,7 +511,6 @@ public class MTESynchrotron extends MTEEnhancedMultiBlockBase<MTESynchrotron> im } tt.addInfo("Requires 32 kL/s of coolant") - .addSeparator() .beginStructureBlock(36, 7, 34, true) .addController("Front middle") .addCasingInfoExactly(LanthItemList.SHIELDED_ACCELERATOR_CASING.getLocalizedName(), 676, false) @@ -528,8 +525,7 @@ public class MTESynchrotron extends MTEEnhancedMultiBlockBase<MTESynchrotron> im .addInputHatch(addDotText(4)) .addOutputHatch(addDotText(5)) .addEnergyHatch(addDotText(6)) - - .toolTipFinisher("GTNH: Lanthanides"); + .toolTipFinisher(); return tt; } diff --git a/src/main/java/gtnhlanth/common/tileentity/MTETargetChamber.java b/src/main/java/gtnhlanth/common/tileentity/MTETargetChamber.java index 12be87754b..ffc16fddf0 100644 --- a/src/main/java/gtnhlanth/common/tileentity/MTETargetChamber.java +++ b/src/main/java/gtnhlanth/common/tileentity/MTETargetChamber.java @@ -13,7 +13,6 @@ import static gregtech.api.enums.Textures.BlockIcons.OVERLAY_FRONT_OIL_CRACKER_A import static gregtech.api.enums.Textures.BlockIcons.OVERLAY_FRONT_OIL_CRACKER_GLOW; import static gregtech.api.enums.Textures.BlockIcons.casingTexturePages; import static gregtech.api.util.GTStructureUtility.buildHatchAdder; -import static gtnhlanth.util.DescTextLocalization.BLUEPRINT_INFO; import static gtnhlanth.util.DescTextLocalization.addDotText; import java.util.ArrayList; @@ -183,12 +182,8 @@ public class MTETargetChamber extends MTEEnhancedMultiBlockBase<MTETargetChamber protected MultiblockTooltipBuilder createTooltip() { final MultiblockTooltipBuilder tt = new MultiblockTooltipBuilder(); tt.addMachineType("Collision Chamber") - .addInfo("Controller block for the Target Chamber") .addInfo("Hitting things with other things") - - .addInfo(BLUEPRINT_INFO) .addInfo(DescTextLocalization.BEAMLINE_SCANNER_INFO) - .addSeparator() .beginStructureBlock(5, 5, 6, true) .addController("Front bottom") .addCasingInfoExactly("Grate Machine Casing", 29, false) @@ -205,7 +200,7 @@ public class MTETargetChamber extends MTEEnhancedMultiBlockBase<MTETargetChamber .addInputBus(addDotText(3)) .addOutputBus(addDotText(4)) .addOtherStructurePart("Beamline Input Hatch", addDotText(5)) - .toolTipFinisher("GTNH: Lanthanides"); + .toolTipFinisher(); return tt; } diff --git a/src/main/java/gtnhlanth/util/DescTextLocalization.java b/src/main/java/gtnhlanth/util/DescTextLocalization.java index f736e466e0..34f405995c 100644 --- a/src/main/java/gtnhlanth/util/DescTextLocalization.java +++ b/src/main/java/gtnhlanth/util/DescTextLocalization.java @@ -4,6 +4,7 @@ import net.minecraft.util.StatCollector; public class DescTextLocalization { + @Deprecated public static final String BLUEPRINT_INFO = StatCollector.translateToLocal("gtnhlanth.tt.blueprint"); public static final String BEAMLINE_SCANNER_INFO = StatCollector.translateToLocal("gtnhlanth.tt.beaminfo"); |