@@ -164,60 +164,40 @@ public ICubeRenderer getBaseTexture(IMultiblockPart sourcePart) {
164164 }
165165
166166 @ Override
167- protected void addDisplayText (List <ITextComponent > textList ) {
168- MultiblockDisplayText .builder (textList , isStructureFormed ())
169- .setWorkingStatus (minerLogic .isWorkingEnabled (), minerLogic .isActive ())
167+ protected void configureDisplayText (MultiblockUIFactory .Builder builder ) {
168+ builder .setWorkingStatus (minerLogic .isWorkingEnabled (), minerLogic .isActive ())
170169 .setWorkingStatusKeys (
171170 "gregtech.multiblock.idling" ,
172171 "gregtech.multiblock.work_paused" ,
173172 "gregtech.multiblock.miner.drilling" )
174173 .addEnergyUsageLine (energyContainer )
175- .addCustom (tl -> {
174+ .addCustom (list -> {
176175 if (isStructureFormed ()) {
177176 if (minerLogic .getDrilledFluid () != null ) {
178177 // Fluid name
179178 Fluid drilledFluid = minerLogic .getDrilledFluid ();
180- ITextComponent fluidInfo = TextComponentUtil
181- .setColor (GTUtility .getFluidTranslation (drilledFluid ), TextFormatting .GREEN );
182- tl .add (TextComponentUtil .translationWithColor (
183- TextFormatting .GRAY ,
184- "gregtech.multiblock.fluid_rig.drilled_fluid" ,
185- fluidInfo ));
186-
187- // Fluid amount
188- ITextComponent amountInfo = TextComponentUtil .stringWithColor (
189- TextFormatting .BLUE ,
190- TextFormattingUtil .formatNumbers (
191- minerLogic .getFluidToProduce () * 20L / FluidDrillLogic .MAX_PROGRESS ) +
192- " L/s" );
193- tl .add (TextComponentUtil .translationWithColor (
194- TextFormatting .GRAY ,
195- "gregtech.multiblock.fluid_rig.fluid_amount" ,
196- amountInfo ));
179+ IKey fluidInfo = GTUtility .getFluidIKey (drilledFluid ).style (TextFormatting .GREEN );
180+ list .add (KeyUtil .lang (TextFormatting .GRAY , "gregtech.multiblock.fluid_rig.drilled_fluid" , fluidInfo ));
181+
182+ IKey amountInfo = KeyUtil .lang (TextFormatting .BLUE , TextFormattingUtil .formatNumbers (minerLogic .getFluidToProduce () * 20L / FluidDrillLogic .MAX_PROGRESS ) + " L/s" );
183+ list .add (KeyUtil .lang (TextFormatting .GRAY , "gregtech.multiblock.fluid_rig.fluid_amount" , amountInfo ));
197184 } else {
198- ITextComponent noFluid = TextComponentUtil .translationWithColor (TextFormatting .RED ,
199- "gregtech.multiblock.fluid_rig.no_fluid_in_area" );
200- tl .add (TextComponentUtil .translationWithColor (
201- TextFormatting .GRAY ,
202- "gregtech.multiblock.fluid_rig.drilled_fluid" ,
203- noFluid ));
185+ IKey noFluid = KeyUtil .lang (TextFormatting .RED , "gregtech.multiblock.fluid_rig.no_fluid_in_area" );
186+ list .add (KeyUtil .lang (TextFormatting .GRAY , "gregtech.multiblock.fluid_rig.drilled_fluid" , noFluid ));
204187 }
205188 }
206189 })
207- .addWorkingStatusLine ( )
208- .addProgressLine ( minerLogic . getProgressPercent () );
190+ .addProgressLine ( minerLogic . getProgressPercent () )
191+ .addWorkingStatusLine ( );
209192 }
210193
211194 @ Override
212- protected void addWarningText (List <ITextComponent > textList ) {
213- MultiblockDisplayText .builder (textList , isStructureFormed (), false )
214- .addLowPowerLine (isStructureFormed () && !drainEnergy (true ))
215- .addCustom (tl -> {
216- if (isStructureFormed () && minerLogic .isInventoryFull ()) {
217- tl .add (TextComponentUtil .translationWithColor (
218- TextFormatting .YELLOW ,
219- "gregtech.machine.miner.invfull" ));
220- }
195+ protected void configureWarningText (MultiblockUIFactory .Builder builder ) {
196+ builder .addLowPowerLine (isStructureFormed () && !drainEnergy (true ))
197+ .addCustom (list -> {
198+ if (isStructureFormed () && minerLogic .isInventoryFull ()) {
199+ list .add (KeyUtil .lang (TextFormatting .YELLOW , "gregtech.machine.miner.invfull" ));
200+ }
221201 });
222202 }
223203
0 commit comments