Class EconomyEvent

java.lang.Object
net.neoforged.bus.api.Event
com.pixelmonmod.pixelmon.api.economy.EconomyEvent
Direct Known Subclasses:
EconomyEvent.GetBalance, EconomyEvent.PostTransaction, EconomyEvent.PreTransaction, EconomyEvent.SetBalance

public class EconomyEvent extends net.neoforged.bus.api.Event
Superclass of all events relating to the economy
  • Constructor Details

    • EconomyEvent

      public EconomyEvent(net.minecraft.server.level.ServerPlayer player, BankAccount account)
  • Method Details

    • getPlayer

      public net.minecraft.server.level.ServerPlayer getPlayer()
      Gets the player involved in the economy transaction
      Returns:
      The player
    • getAccount

      public BankAccount getAccount()
      Gets the bank account of the player involved in the transaction
      Returns:
      The bank account of the player