88import mcjty .theoneprobe .api .ElementAlignment ;
99import mcjty .theoneprobe .api .IProbeInfo ;
1010import mcjty .theoneprobe .api .TextStyleClass ;
11- import net .minecraft .client .resources .I18n ;
1211import net .minecraft .tileentity .TileEntity ;
1312import net .minecraft .util .EnumFacing ;
1413import net .minecraftforge .common .capabilities .Capability ;
@@ -34,7 +33,7 @@ protected boolean allowDisplaying(IFuelable capability) {
3433 protected void addProbeInfo (IFuelable capability , IProbeInfo probeInfo , TileEntity tileEntity , EnumFacing sideHit ) {
3534 Collection <IFuelInfo > fuels = capability .getFuels ();
3635 if (fuels == null || fuels .isEmpty ()) {
37- probeInfo .text (TextStyleClass .WARNING + I18n . format ( " gregtech.top.fuel_none" ) );
36+ probeInfo .text (TextStyleClass .WARNING + "{* gregtech.top.fuel_none*}" );
3837 return ;
3938 }
4039 for (IFuelInfo fuelInfo : fuels ) {
@@ -45,20 +44,19 @@ protected void addProbeInfo(IFuelable capability, IProbeInfo probeInfo, TileEnti
4544 final int burnTime = fuelInfo .getFuelBurnTime ()/20 ;
4645
4746 IProbeInfo horizontalPane = probeInfo .horizontal (probeInfo .defaultLayoutStyle ().alignment (ElementAlignment .ALIGN_CENTER ));
48- horizontalPane .text (TextStyleClass .INFO + I18n . format ( " gregtech.top.fuel_name" , fuelName ) );
47+ horizontalPane .text (TextStyleClass .INFO + "{* gregtech.top.fuel_name*} {*" + fuelName + "*}" );
4948
5049 horizontalPane = probeInfo .horizontal (probeInfo .defaultLayoutStyle ().alignment (ElementAlignment .ALIGN_CENTER ));
51- String suffix ;
52- if (fuelRemaining < fuelMinConsumed )
53- suffix = I18n .format ("gregtech.top.fuel_min_consume" , fuelCapacity , fuelMinConsumed );
54- else
55- suffix = I18n .format ("gregtech.top.fuel_info" , fuelCapacity , burnTime );
5650 horizontalPane .progress (fuelRemaining , fuelCapacity , probeInfo .defaultProgressStyle ()
57- .suffix (suffix )
51+ .suffix ("/" + fuelCapacity + " " )
5852 .borderColor (0x00000000 )
5953 .backgroundColor (0x00000000 )
6054 .filledColor (0xFFFFE000 )
6155 .alternateFilledColor (0xFFEED000 ));
56+ if (fuelRemaining < fuelMinConsumed )
57+ horizontalPane .text ("{*gregtech.top.fuel_min_consume*} " + fuelMinConsumed );
58+ else
59+ horizontalPane .text ("{*gregtech.top.fuel_burn*} " + burnTime + " {*gregtech.top.fuel_time*}" );
6260 }
6361 }
6462
0 commit comments