Interface Account
public interface Account
-
Method Summary
Modifier and TypeMethodDescriptionbalance(EconomyContext context, Currency currency) balances(EconomyContext context) currencies(EconomyContext context) deposit(EconomyContext context, Currency currency, BigDecimal amount, net.kyori.adventure.text.Component reason) has(EconomyContext context, Currency currency, BigDecimal amount) hasCapacity(EconomyContext context, Currency currency, BigDecimal amount) net.kyori.adventure.key.Keyid()owner()set(EconomyContext context, Currency currency, BigDecimal amount, net.kyori.adventure.text.Component reason) setState(AccountState state, net.kyori.adventure.text.Component reason) state()transfer(EconomyContext context, Account to, Currency currency, BigDecimal amount, net.kyori.adventure.text.Component reason) type()withdraw(EconomyContext context, Currency currency, BigDecimal amount, net.kyori.adventure.text.Component reason)
-
Method Details
-
id
net.kyori.adventure.key.Key id() -
type
AccountType type() -
owner
UUID owner() -
state
CompletableFuture<AccountState> state() -
setState
-
currencies
-
balance
-
has
-
hasCapacity
CompletableFuture<Boolean> hasCapacity(EconomyContext context, Currency currency, BigDecimal amount) -
set
CompletableFuture<TransactionResult> set(EconomyContext context, Currency currency, BigDecimal amount, net.kyori.adventure.text.Component reason) -
deposit
CompletableFuture<TransactionResult> deposit(EconomyContext context, Currency currency, BigDecimal amount, net.kyori.adventure.text.Component reason) -
withdraw
CompletableFuture<TransactionResult> withdraw(EconomyContext context, Currency currency, BigDecimal amount, net.kyori.adventure.text.Component reason) -
transfer
CompletableFuture<TransactionResult> transfer(EconomyContext context, Account to, Currency currency, BigDecimal amount, net.kyori.adventure.text.Component reason) -
balances
-