mirror of
https://github.com/SimplexDevelopment/FreedomNetworkSuite.git
synced 2025-06-27 19:56:41 +00:00
Add economic entity interfaces
I decided to add these interfaces, instead of just building upon the User & UserData interface, as support for commerce between clans & users might be something that we want to add in the future in Clans.
This commit is contained in:
@ -0,0 +1,8 @@
|
||||
package me.totalfreedom.economy;
|
||||
|
||||
public interface EconomicEntity
|
||||
{
|
||||
EconomicEntityData getEconomicData();
|
||||
|
||||
String getName();
|
||||
}
|
@ -0,0 +1,12 @@
|
||||
package me.totalfreedom.economy;
|
||||
|
||||
public interface EconomicEntityData
|
||||
{
|
||||
long getBalance();
|
||||
|
||||
void addToBalance(final long amount);
|
||||
|
||||
void removeFromBalance(final long amount);
|
||||
|
||||
void setBalance(final long newBalance);
|
||||
}
|
Reference in New Issue
Block a user