Package me.totalfreedom.economy
Interface EconomicEntityData
- All Known Subinterfaces:
UserData
public interface EconomicEntityData
Metadata associated with a
EconomicEntity-
Method Summary
Modifier and TypeMethodDescriptionlongaddToBalance(long amount) Adds the provided amount to the associated instance's balancebooleanlonglongremoveFromBalance(long amount) Subtracts the provided amount from the associated instance's balancevoidsetBalance(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
-