mirror of
https://github.com/GTNewHorizons/AE2FluidCraft-Rework.git
synced 2026-11-18 11:19:23 +00:00
fix format
This commit is contained in:
1 file changed
+5
-5
@@ -1,6 +1,6 @@
|
||||
package com.glodblock.github.crossmod.waila;
|
||||
|
||||
import appeng.util.Utility;
|
||||
import appeng.util.ReadableNumberConverter;
|
||||
import com.glodblock.github.util.NameConst;
|
||||
import com.glodblock.github.util.Util;
|
||||
import net.minecraft.client.Minecraft;
|
||||
@@ -9,20 +9,20 @@ import net.minecraftforge.fluids.FluidStack;
|
||||
|
||||
public class Tooltip {
|
||||
public static String fluidFormat(String name, int amount) {
|
||||
return String.format("%s: %s mB", name, Utility.formatNumbers(amount));
|
||||
return String.format("%s: %s mB", name, ReadableNumberConverter.INSTANCE.toWideReadableForm(amount));
|
||||
}
|
||||
|
||||
public static String partFluidBusFormat(int amount) {
|
||||
return String.format("%s: %s mB/t", I18n.format(NameConst.WAILA_SPEED), Utility.formatNumbers(amount / 5));
|
||||
return String.format("%s: %s mB/t", I18n.format(NameConst.WAILA_SPEED), ReadableNumberConverter.INSTANCE.toWideReadableForm(amount / 5));
|
||||
}
|
||||
|
||||
public static String tileFluidInterfaceFormat(String name, int amount, int face) {
|
||||
return String.format("%s %s: %s mB", I18n.format(NameConst.GUI_FLUID_INTERFACE + "." + face), name, Utility.formatNumbers(amount));
|
||||
return String.format("%s %s: %s mB", I18n.format(NameConst.GUI_FLUID_INTERFACE + "." + face), name, ReadableNumberConverter.INSTANCE.toWideReadableForm(amount));
|
||||
}
|
||||
|
||||
public static String tileLevelMaintainerFormat(String name, long quantity, long batch, boolean isEnable) {
|
||||
return String.format("%s: %s / %s %s",
|
||||
name, Utility.formatNumbers(quantity), Utility.formatNumbers(batch),
|
||||
name, ReadableNumberConverter.INSTANCE.toWideReadableForm(quantity), ReadableNumberConverter.INSTANCE.toWideReadableForm(batch),
|
||||
isEnable ? I18n.format(NameConst.WAILA_ENABLE) : I18n.format(NameConst.WAILA_DISABLE)
|
||||
);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user