public static class EconomyEvent.SetBalance extends EconomyEvent
BankAccount
implementation (PlayerPartyStorage
)
For any economy bridges, this event MUST be listened to and the balance MUST be assigned in case someone uses the
PlayerPartyStorage
methods for setting the balance
The methods in PlayerPartyStorage
exist for the case of single player
or any instances where no other BankAccount
implementation is providedEconomyEvent.GetBalance, EconomyEvent.PostTransaction, EconomyEvent.PreTransaction, EconomyEvent.SetBalance, EconomyEvent.TransactionType
Constructor and Description |
---|
SetBalance(net.minecraft.entity.player.ServerPlayerEntity player,
BankAccount bankAccount,
java.math.BigDecimal balance) |
Modifier and Type | Method and Description |
---|---|
java.math.BigDecimal |
getBalance()
The new value of the player's balance
|
void |
setBalance(java.math.BigDecimal balance)
Sets the new value to be something else
|
getAccount, getPlayer
public SetBalance(net.minecraft.entity.player.ServerPlayerEntity player, BankAccount bankAccount, java.math.BigDecimal balance)