Class EconomyEvent.PreTransaction

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

public static class EconomyEvent.PreTransaction extends EconomyEvent
Event fired just before a transaction is applied to the BankAccount If cancelled the transaction will not take place
  • Constructor Details

  • Method Details

    • getType

      public EconomyEvent.TransactionType getType()
      Gets the type of transaction that will take place
      Returns:
      The type of transaction
    • getBalance

      public BigDecimal getBalance()
      Gets the balance before the transaction
      Returns:
      The balance before
    • getChange

      public BigDecimal getChange()
      Gets the amount the balance will change by after the transaction
      Returns:
      The change amount
    • setChange

      public void setChange(BigDecimal change)
      Sets the amount the balance will change by
      Parameters:
      change - The new change amount