Skip to content

GaldurFormat

classclient onlysince 0.1.0

com.galdurstudio.galdurui.api.text.GaldurFormat

Formats the amounts shown by Galdur UI. Plain Java: usable anywhere, including on the server and in unit tests.

public final class GaldurFormat
PACKAGEapi.text
SIDEclient only
THREADclient thread

Methods 2

amount

static
public static String amount(long amount)

PARAMETERS

amountlongthe amount; a negative value shows as 0

RETURNSString — an amount abbreviated to fit in an item slot

Source ↗

fullAmount

static
public static String fullAmount(long amount)

PARAMETERS

amountlongthe amount; a negative value shows as 0

RETURNSString — the exact amount, thousands separated by a narrow no-break space

© 2026 Galdur Studio · galdurstudio.com · Discord · LGPL-3.0-onlyNot an official Minecraft product. Not approved by or associated with Mojang or Microsoft.