public static class EconomyEvent.PreTransaction extends EconomyEvent
BankAccount
If cancelled the transaction will not take placeEconomyEvent.GetBalance, EconomyEvent.PostTransaction, EconomyEvent.PreTransaction, EconomyEvent.SetBalance, EconomyEvent.TransactionType
Constructor and Description |
---|
PreTransaction(net.minecraft.entity.player.ServerPlayerEntity player,
BankAccount bankAccount,
EconomyEvent.TransactionType type,
java.math.BigDecimal balance,
java.math.BigDecimal change) |
Modifier and Type | Method and Description |
---|---|
java.math.BigDecimal |
getBalance()
Gets the balance before the transaction
|
java.math.BigDecimal |
getChange()
Gets the amount the balance will change by after the transaction
|
EconomyEvent.TransactionType |
getType()
Gets the type of transaction that will take place
|
void |
setChange(java.math.BigDecimal change)
Sets the amount the balance will change by
|
getAccount, getPlayer
public PreTransaction(net.minecraft.entity.player.ServerPlayerEntity player, BankAccount bankAccount, EconomyEvent.TransactionType type, java.math.BigDecimal balance, java.math.BigDecimal change)
public EconomyEvent.TransactionType getType()
public java.math.BigDecimal getBalance()
public java.math.BigDecimal getChange()
public void setChange(java.math.BigDecimal change)
change
- The new change amount