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:
Allink
2023-05-20 04:54:55 +01:00
parent 2fd2008f65
commit 2f18e4d8ef
5 changed files with 68 additions and 4 deletions

View File

@ -0,0 +1,8 @@
package me.totalfreedom.economy;
public interface EconomicEntity
{
EconomicEntityData getEconomicData();
String getName();
}

View File

@ -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);
}