diff --git a/src/main/java/com/gregtechceu/gtceu/data/machine/GCyMMachines.java b/src/main/java/com/gregtechceu/gtceu/data/machine/GCyMMachines.java index 4fb166d6a3..6fb761a944 100644 --- a/src/main/java/com/gregtechceu/gtceu/data/machine/GCyMMachines.java +++ b/src/main/java/com/gregtechceu/gtceu/data/machine/GCyMMachines.java @@ -21,9 +21,12 @@ import com.gregtechceu.gtceu.data.material.GTMaterials; import com.gregtechceu.gtceu.data.recipe.GTRecipeModifiers; import com.gregtechceu.gtceu.data.recipe.GTRecipeTypes; +import com.gregtechceu.gtceu.utils.FormattingUtil; +import net.minecraft.ChatFormatting; import net.minecraft.core.Direction; import net.minecraft.network.chat.Component; +import net.minecraft.network.chat.Style; import net.minecraft.world.level.block.Blocks; import java.util.ArrayList; @@ -498,6 +501,18 @@ public static void init() {} }) .workableCasingRenderer(GTCEu.id("block/casings/gcym/high_temperature_smelting_casing"), GTCEu.id("block/multiblock/gcym/blast_alloy_smelter")) + .additionalDisplay((controller, components) -> { + if (controller instanceof CoilWorkableElectricMultiblockMachine coilMachine && controller.isFormed()) { + components.add(Component.translatable("gtceu.multiblock.blast_furnace.max_temperature", + Component + .translatable( + FormattingUtil + .formatNumbers(coilMachine.getCoilType().getCoilTemperature() + + 100L * Math.max(0, coilMachine.getTier() - GTValues.MV)) + + "K") + .setStyle(Style.EMPTY.withColor(ChatFormatting.RED)))); + } + }) .compassSections(GTCompassSections.TIER[IV]) .compassNodeSelf() .register(); @@ -948,6 +963,18 @@ public static void init() {} }) .workableCasingRenderer(GTCEu.id("block/casings/gcym/high_temperature_smelting_casing"), GTCEu.id("block/multiblock/gcym/mega_blast_furnace")) + .additionalDisplay((controller, components) -> { + if (controller instanceof CoilWorkableElectricMultiblockMachine coilMachine && controller.isFormed()) { + components.add(Component.translatable("gtceu.multiblock.blast_furnace.max_temperature", + Component + .translatable( + FormattingUtil + .formatNumbers(coilMachine.getCoilType().getCoilTemperature() + + 100L * Math.max(0, coilMachine.getTier() - GTValues.MV)) + + "K") + .setStyle(Style.EMPTY.withColor(ChatFormatting.RED)))); + } + }) .compassSections(GTCompassSections.TIER[LuV]) .compassNodeSelf() .register();