Package com.patelheet.capitalengine.api
Interface Account
public interface Account
A read-only view of one account. All getters are instant and thread-safe.
-
Method Summary
Modifier and TypeMethodDescriptionlongbalance()Current balance in the smallest currency unit, read from memory.id()Stable unique id of the account.kind()What kind of account this is.name()Display name (player name, or the namespaced key for plugin accounts).The player who owns this account, forAccountKind.PLAYER.The plugin that owns this account, forAccountKind.PLUGINandAccountKind.EXTERNAL.
-
Method Details
-
id
UUID id()Stable unique id of the account. -
kind
AccountKind kind()What kind of account this is. -
name
String name()Display name (player name, or the namespaced key for plugin accounts). -
balance
long balance()Current balance in the smallest currency unit, read from memory. -
ownerPlayer
The player who owns this account, forAccountKind.PLAYER. -
ownerPlugin
The plugin that owns this account, forAccountKind.PLUGINandAccountKind.EXTERNAL.
-