Class EconomyEvent.PostTransaction

java.lang.Object
net.minecraftforge.eventbus.api.Event
com.pixelmonmod.pixelmon.api.economy.EconomyEvent
com.pixelmonmod.pixelmon.api.economy.EconomyEvent.PostTransaction
Enclosing class:
EconomyEvent

public static class EconomyEvent.PostTransaction extends EconomyEvent
Event fired just after a transaction is applied to the BankAccount
  • Constructor Details

  • Method Details

    • getType

      public EconomyEvent.TransactionType getType()
      Gets the type of transaction that occured
      Returns:
      The type of transaction
    • getOldBalance

      public BigDecimal getOldBalance()
      Gets the value of the balance before the transaction
      Returns:
      The old balance
    • getNewBalance

      public BigDecimal getNewBalance()
      Gets the value of the balance after the transaction
      Returns:
      The new balance
    • getDifference

      public BigDecimal getDifference()
      Calculates the difference between the old and new balances
      Returns:
      The difference
    • isCancelable

      public boolean isCancelable()
      Overrides:
      isCancelable in class net.minecraftforge.eventbus.api.Event