Add thousandth mark for cell tooltips. (#174)

* Add millennials to cell tooltips, make it more readable

* Update build.gradle
This commit is contained in:
MCTBL authored and GitHub committed 2023-12-03 14:29:03 +00:00
1 parent 3077326c16
commit 3b1b1af852
3 files changed
+7 -6

No files matched your search

@@ -101,7 +101,7 @@ public abstract class FCBaseItemCell extends AEBaseItem implements IStorageFluid
if (cellInventory != null) {
lines.add(
EnumChatFormatting.WHITE + String.valueOf(cellInventory.getUsedBytes())
EnumChatFormatting.WHITE + NumberFormat.getInstance().format(cellInventory.getUsedBytes())
+ EnumChatFormatting.GRAY
+ " "
+ GuiText.Of.getLocal()
@@ -112,7 +112,7 @@ public abstract class FCBaseItemCell extends AEBaseItem implements IStorageFluid
+ EnumChatFormatting.GRAY
+ GuiText.BytesUsed.getLocal());
lines.add(
EnumChatFormatting.WHITE + String.valueOf(cellInventory.getStoredFluidTypes())
EnumChatFormatting.WHITE + NumberFormat.getInstance().format(cellInventory.getStoredFluidTypes())
+ EnumChatFormatting.GRAY
+ " "
+ GuiText.Of.getLocal()
@@ -1,5 +1,6 @@
package com.glodblock.github.common.item;
import java.text.NumberFormat;
import java.util.EnumSet;
import java.util.List;
@@ -82,7 +83,7 @@ public class ItemPortableFluidCell extends AEBasePoweredItem
final IFluidCellInventory cellInventory = handler.getCellInv();
if (cellInventory != null) {
lines.add(
EnumChatFormatting.WHITE + String.valueOf(cellInventory.getUsedBytes())
EnumChatFormatting.WHITE + NumberFormat.getInstance().format(cellInventory.getUsedBytes())
+ EnumChatFormatting.GRAY
+ " "
+ GuiText.Of.getLocal()
@@ -93,7 +94,7 @@ public class ItemPortableFluidCell extends AEBasePoweredItem
+ EnumChatFormatting.GRAY
+ GuiText.BytesUsed.getLocal());
lines.add(
EnumChatFormatting.WHITE + String.valueOf(cellInventory.getStoredFluidTypes())
EnumChatFormatting.WHITE + NumberFormat.getInstance().format(cellInventory.getStoredFluidTypes())
+ EnumChatFormatting.GRAY
+ " "
+ GuiText.Of.getLocal()