public static class EconomyEvent.PostTransaction extends EconomyEvent
BankAccountEconomyEvent.GetBalance, EconomyEvent.PostTransaction, EconomyEvent.PreTransaction, EconomyEvent.SetBalance, EconomyEvent.TransactionType| Constructor and Description |
|---|
PostTransaction(net.minecraft.entity.player.ServerPlayerEntity player,
BankAccount bankAccount,
EconomyEvent.TransactionType type,
java.math.BigDecimal oldBalance,
java.math.BigDecimal newBalance) |
| Modifier and Type | Method and Description |
|---|---|
java.math.BigDecimal |
getDifference()
Calculates the difference between the old and new balances
|
java.math.BigDecimal |
getNewBalance()
Gets the value of the balance after the transaction
|
java.math.BigDecimal |
getOldBalance()
Gets the value of the balance before the transaction
|
EconomyEvent.TransactionType |
getType()
Gets the type of transaction that occured
|
boolean |
isCancelable() |
getAccount, getPlayerpublic PostTransaction(net.minecraft.entity.player.ServerPlayerEntity player,
BankAccount bankAccount,
EconomyEvent.TransactionType type,
java.math.BigDecimal oldBalance,
java.math.BigDecimal newBalance)
public EconomyEvent.TransactionType getType()
public java.math.BigDecimal getOldBalance()
public java.math.BigDecimal getNewBalance()
public java.math.BigDecimal getDifference()
public boolean isCancelable()
isCancelable in class net.minecraftforge.eventbus.api.Event