Interface EconomicEntityData

All Known Subinterfaces:
UserData

public interface EconomicEntityData
Metadata associated with a EconomicEntity
  • Method Summary

    Modifier and Type
    Method
    Description
    long
    addToBalance(long amount)
    Adds the provided amount to the associated instance's balance
    boolean
     
    long
     
    long
    removeFromBalance(long amount)
    Subtracts the provided amount from the associated instance's balance
    void
    setBalance(long newBalance)
    Sets the balance of the associated instance
  • Method Details

    • areTransactionsFrozen

      boolean areTransactionsFrozen()
      Returns:
      the transaction freeze state
    • getBalance

      long getBalance()
      Returns:
      the balance
    • setBalance

      void setBalance(long newBalance)
      Sets the balance of the associated instance
      Parameters:
      newBalance - the new balance
    • addToBalance

      long addToBalance(long amount)
      Adds the provided amount to the associated instance's balance
      Parameters:
      amount - the amount to add
      Returns:
      the new balance
    • removeFromBalance

      long removeFromBalance(long amount)
      Subtracts the provided amount from the associated instance's balance
      Parameters:
      amount - the amount to subtract
      Returns:
      the new balance