|
16 | 16 | import gregtech.api.pattern.PatternMatchContext; |
17 | 17 | import gregtech.api.pattern.TraceabilityPredicate; |
18 | 18 | import gregtech.api.util.KeyUtil; |
19 | | -import gregtech.api.util.TextFormattingUtil; |
20 | 19 | import gregtech.client.renderer.ICubeRenderer; |
21 | 20 | import gregtech.client.renderer.texture.Textures; |
22 | 21 | import gregtech.client.utils.TooltipHelper; |
@@ -170,31 +169,27 @@ protected void configureDisplayText(MultiblockUIFactory.Builder builder) { |
170 | 169 | "gregtech.multiblock.idling", |
171 | 170 | "gregtech.multiblock.idling", |
172 | 171 | "gregtech.machine.active_transformer.routing") |
173 | | - .addWorkingStatusLine() |
174 | 172 | .addCustom(list -> { |
175 | 173 | if (isStructureFormed()) { |
176 | 174 | // Max input line |
177 | 175 | IKey maxInputFormatted = KeyUtil.number(TextFormatting.WHITE, |
178 | | - powerInput.getInputVoltage() * powerInput.getInputAmperage(), |
179 | | - " EU/t"); |
| 176 | + powerInput.getInputVoltage() * powerInput.getInputAmperage(), " EU/t"); |
180 | 177 | list.add(KeyUtil.lang(TextFormatting.GREEN, "gregtech.multiblock.active_transformer.max_in", |
181 | 178 | maxInputFormatted)); |
182 | 179 |
|
183 | 180 | // Max output line |
184 | | - IKey maxOutputFormatted = KeyUtil |
185 | | - .string(TextFormatting.WHITE, TextFormattingUtil.formatNumbers( |
186 | | - powerOutput.getOutputVoltage() * powerOutput.getOutputAmperage()) + |
187 | | - " EU/t"); |
| 181 | + IKey maxOutputFormatted = KeyUtil.number(TextFormatting.WHITE, |
| 182 | + powerOutput.getOutputVoltage() * powerOutput.getOutputAmperage(), " EU/t"); |
188 | 183 | list.add(KeyUtil.lang(TextFormatting.RED, "gregtech.multiblock.active_transformer.max_out", |
189 | 184 | maxOutputFormatted)); |
190 | 185 |
|
191 | 186 | // Average I/O line |
192 | | - IKey avgIOFormatted = KeyUtil.string(TextFormatting.WHITE, |
193 | | - TextFormattingUtil.formatNumbers(averageIOLastSec) + " EU/t"); |
| 187 | + IKey avgIOFormatted = KeyUtil.number(TextFormatting.WHITE, averageIOLastSec, " EU/t"); |
194 | 188 | list.add(KeyUtil.lang(TextFormatting.AQUA, "gregtech.multiblock.active_transformer.average_io", |
195 | 189 | avgIOFormatted)); |
196 | 190 | } |
197 | | - }); |
| 191 | + }) |
| 192 | + .addWorkingStatusLine(); |
198 | 193 | } |
199 | 194 |
|
200 | 195 | @Override |
|
0 commit comments