diff options
author | GlodBlock <1356392126@qq.com> | 2021-07-20 22:35:31 +0800 |
---|---|---|
committer | GlodBlock <1356392126@qq.com> | 2021-07-20 22:35:31 +0800 |
commit | fec7c69632f9e1dad46e0471d73fb8be688c5320 (patch) | |
tree | 044d641cb14d5f6b81d3fcc048ad1276a885117a /src/main/java/GoodGenerator/Blocks | |
parent | 387e7750b19d5f06caa4e14cc1c4da1a10ce968c (diff) | |
download | GT5-Unofficial-fec7c69632f9e1dad46e0471d73fb8be688c5320.tar.gz GT5-Unofficial-fec7c69632f9e1dad46e0471d73fb8be688c5320.tar.bz2 GT5-Unofficial-fec7c69632f9e1dad46e0471d73fb8be688c5320.zip |
make tooltip colorful
Diffstat (limited to 'src/main/java/GoodGenerator/Blocks')
3 files changed, 10 insertions, 5 deletions
diff --git a/src/main/java/GoodGenerator/Blocks/TEs/FuelRefineFactory.java b/src/main/java/GoodGenerator/Blocks/TEs/FuelRefineFactory.java index 9897d6eff5..9ec679044a 100644 --- a/src/main/java/GoodGenerator/Blocks/TEs/FuelRefineFactory.java +++ b/src/main/java/GoodGenerator/Blocks/TEs/FuelRefineFactory.java @@ -24,6 +24,7 @@ import gregtech.api.util.GT_Utility; import net.minecraft.block.Block; import net.minecraft.item.ItemStack; import net.minecraft.nbt.NBTTagCompound; +import net.minecraft.util.EnumChatFormatting; import net.minecraft.util.StatCollector; import net.minecraft.world.World; import net.minecraftforge.fluids.FluidStack; @@ -158,12 +159,13 @@ public class FuelRefineFactory extends GT_MetaTileEntity_MultiblockBase_EM imple public String[] getDescription(){ final GT_Multiblock_Tooltip_Builder tt = new GT_Multiblock_Tooltip_Builder(); tt.addMachineType("Naquadah Fuel Refine Factory") + .addInfo("Controller block for the Naquadah Fuel Refine Factory") .addInfo("But at what cost?") .addInfo("Produce the endgame naquadah fuel.") .addInfo("Need field restriction coil to control the fatal radiation.") .addInfo("Use higher tier coil to unlock more fuel and reduce the process time.") .addInfo("The structure is too complex!") - .addInfo("Follow the TecTech blueprint to build the main structure.") + .addInfo("Follow the" + EnumChatFormatting.DARK_BLUE + " Tec" + EnumChatFormatting.BLUE + "Tech" + EnumChatFormatting.GRAY + " blueprint to build the main structure.") .addSeparator() .addInputHatch("The casings adjoin the field restriction glass.") .addInputBus("The casings adjoin the field restriction glass.") diff --git a/src/main/java/GoodGenerator/Blocks/TEs/MultiNqGenerator.java b/src/main/java/GoodGenerator/Blocks/TEs/MultiNqGenerator.java index 38ec9ced0b..fdbe5bcdd6 100644 --- a/src/main/java/GoodGenerator/Blocks/TEs/MultiNqGenerator.java +++ b/src/main/java/GoodGenerator/Blocks/TEs/MultiNqGenerator.java @@ -24,6 +24,7 @@ import gregtech.api.util.GT_Recipe; import gregtech.api.util.GT_Utility; import net.minecraft.item.ItemStack; import net.minecraft.nbt.NBTTagCompound; +import net.minecraft.util.EnumChatFormatting; import net.minecraftforge.fluids.FluidRegistry; import net.minecraftforge.fluids.FluidStack; import org.lwjgl.input.Keyboard; @@ -382,7 +383,7 @@ public class MultiNqGenerator extends GT_MetaTileEntity_MultiblockBase_EM implem .addInfo("Environmental Friendly!") .addInfo("Generate power with the High-energy liquid.") .addInfo("Input liquid nuclear fuel or liquid naquadah fuel.") - .addInfo("The reactor will explode when there are more than ONE types of fuel in the hatch!") + .addInfo("The reactor will explode when there are more than" + EnumChatFormatting.RED + " ONE" + EnumChatFormatting.GRAY + " types of fuel in the hatch!") .addInfo("Consume coolant 50mb/t to increase the efficiency:") .addInfo("IC2 Coolant 105%, Super Coolant 150%, Cryotheum 275%") .addInfo("Consume excited liquid to increase the output power:") @@ -394,7 +395,7 @@ public class MultiNqGenerator extends GT_MetaTileEntity_MultiblockBase_EM implem .beginStructureBlock(7, 8, 7, true) .addController("Front bottom") .addInfo("The structure is too complex!") - .addInfo("Follow the TecTech blueprint to build the main structure.") + .addInfo("Follow the" + EnumChatFormatting.DARK_BLUE + " Tec" + EnumChatFormatting.BLUE + "Tech" + EnumChatFormatting.GRAY + " blueprint to build the main structure.") .addEnergyHatch("Any bottom layer casing, only accept ONE!") .addInputHatch("Any bottom layer casing") .addOutputHatch("Any bottom layer casing") diff --git a/src/main/java/GoodGenerator/Blocks/TEs/UniversalChemicalFuelEngine.java b/src/main/java/GoodGenerator/Blocks/TEs/UniversalChemicalFuelEngine.java index 9e6ca54607..cc689e39e1 100644 --- a/src/main/java/GoodGenerator/Blocks/TEs/UniversalChemicalFuelEngine.java +++ b/src/main/java/GoodGenerator/Blocks/TEs/UniversalChemicalFuelEngine.java @@ -20,6 +20,7 @@ import gregtech.api.util.GT_Recipe; import gregtech.api.util.GT_Utility; import net.minecraft.item.ItemStack; import net.minecraft.nbt.NBTTagCompound; +import net.minecraft.util.EnumChatFormatting; import net.minecraftforge.fluids.FluidRegistry; import net.minecraftforge.fluids.FluidStack; import org.lwjgl.input.Keyboard; @@ -206,6 +207,7 @@ public class UniversalChemicalFuelEngine extends GT_MetaTileEntity_MultiblockBas public String[] getDescription(){ final GT_Multiblock_Tooltip_Builder tt = new GT_Multiblock_Tooltip_Builder(); tt.addMachineType("Chemical Engine") + .addInfo("Controller block for the Chemical Engine") .addInfo("BURNING BURNING BURNING") .addInfo("Use combustible liquid to generate power.") .addInfo("You need to supply Combustion Promoter to keep it running.") @@ -213,10 +215,10 @@ public class UniversalChemicalFuelEngine extends GT_MetaTileEntity_MultiblockBas .addInfo("The efficiency is determined by the proportion of Combustion Promoter to fuel.") .addInfo("The proportion is bigger, and the efficiency will be higher.") .addInfo("It creates sqrt(Current Output Power) pollution every second") - .addInfo("If you forge to supply Combustion Promoter, this engine will swallow all the fuel without outputting energy.") + .addInfo("If you forge to supply Combustion Promoter, this engine will swallow all the fuel " + EnumChatFormatting.YELLOW + "without outputting energy" + EnumChatFormatting.GRAY + ".") .addInfo("This engine follows the second law of thermodynamics, so the efficiency is up to 100%.") .addInfo("The structure is too complex!") - .addInfo("Follow the TecTech blueprint to build the main structure.") + .addInfo("Follow the" + EnumChatFormatting.DARK_BLUE + " Tec" + EnumChatFormatting.BLUE + "Tech" + EnumChatFormatting.GRAY + " blueprint to build the main structure.") .addSeparator() .addEnergyHatch("Hint block with dot 1") .addMufflerHatch("Hint block with dot 2") |