Interface PlayerBalanceSnapshot


public interface PlayerBalanceSnapshot
Represents a snapshot of a player's balance for various currencies.
  • Method Details

    • getCurrencies

      Collection<Currency> getCurrencies()
      Get all that have been fetched.
      Returns:
      The currencies
    • hasCurrency

      boolean hasCurrency(Currency currency)
      Check whether a given currency has been fetched.
      Parameters:
      currency - The currency
      Returns:
      true if fetched, false otherwise
    • getAmount

      @Nullable @Nullable BigDecimal getAmount(Currency currency)
      Get the amount of a given currency.
      Parameters:
      currency - The currency
      Returns:
      The amount or null if not fetched
    • getDisplayedAmount

      String getDisplayedAmount(Currency currency)
      Get the displayed amount of a given currency.
      Parameters:
      currency - The currency
      Returns:
      The displayed amount or null if not fetched
      See Also:
    • getPlainAmount

      String getPlainAmount(Currency currency)
      Get the plain amount of a given currency.
      Parameters:
      currency - The currency
      Returns:
      The plain amount or null if not fetched
      See Also: