44import com .gregtechceu .gtceu .api .GTValues ;
55import com .gregtechceu .gtceu .api .capability .GTCapabilityHelper ;
66import com .gregtechceu .gtceu .api .machine .IMachineBlockEntity ;
7+ import com .gregtechceu .gtceu .api .machine .steam .SimpleSteamMachine ;
78import com .gregtechceu .gtceu .api .machine .steam .SteamMachine ;
89import com .gregtechceu .gtceu .api .machine .trait .RecipeLogic ;
910import com .gregtechceu .gtceu .api .recipe .RecipeHelper ;
11+ import com .gregtechceu .gtceu .common .machine .multiblock .steam .SteamParallelMultiblockMachine ;
1012import com .gregtechceu .gtceu .integration .jade .provider .RecipeLogicProvider ;
1113import com .gregtechceu .gtceu .utils .FormattingUtil ;
1214import com .gregtechceu .gtceu .utils .GTUtil ;
@@ -50,13 +52,19 @@ protected void addProbeInfo(RecipeLogic capability, IProbeInfo probeInfo, Player
5052 // do not show energy usage on machines that do not use energy
5153 return ;
5254 }
53- String formatted = FormattingUtil .formatNumbers (EUt .getTotalEU ()) + TextStyleClass .INFO ;
5455 Component text = null ;
5556
5657 if (blockEntity instanceof IMachineBlockEntity machineBlockEntity ) {
5758 var machine = machineBlockEntity .getMetaMachine ();
59+ long MBt = 0 ;
60+ if (machine instanceof SimpleSteamMachine ssm ) {
61+ MBt = (long ) Math .ceil (EUt .getTotalEU () * ssm .getConversionRate ());
62+ } else if (machine instanceof SteamParallelMultiblockMachine smb ) {
63+ MBt = (long ) Math .ceil (EUt .getTotalEU () * smb .getConversionRate ());
64+ }
5865 if (machine instanceof SteamMachine ) {
59- text = Component .translatable ("gtceu.jade.fluid_use" , formatted )
66+ text = Component .translatable ("gtceu.jade.fluid_use" ,
67+ FormattingUtil .formatNumbers (MBt ) + TextStyleClass .INFO )
6068 .withStyle (ChatFormatting .GREEN );
6169 }
6270 }
@@ -71,7 +79,7 @@ protected void addProbeInfo(RecipeLogic capability, IProbeInfo probeInfo, Player
7179 .append (GTValues .VNF [tier ])
7280 .append (Component .translatable ("gtceu.universal.padded_parentheses" ,
7381 (Component .translatable ("gtceu.recipe.eu.total" ,
74- formatted )))
82+ FormattingUtil . formatNumbers ( EUt . getTotalEU ()) + TextStyleClass . INFO )))
7583 .withStyle (ChatFormatting .WHITE ));
7684 }
7785
0 commit comments