add statistic interface methods

Took 13 seconds
This commit is contained in:
Kiran Hart 2022-10-19 23:33:46 -04:00
parent 7090be8b19
commit 8b1f4c3701
No known key found for this signature in database
GPG Key ID: 5F36C7BC79D3EBC3

View File

@ -18,5 +18,31 @@
package ca.tweetzy.auctionhouse.ahv3.api.auction;
public interface Statistic {
import ca.tweetzy.auctionhouse.ahv3.api.EditTrackable;
import ca.tweetzy.auctionhouse.ahv3.api.Identifiable;
import ca.tweetzy.auctionhouse.api.interfaces.Storeable;
import ca.tweetzy.auctionhouse.auction.enums.AuctionStatisticType;
import lombok.NonNull;
import java.util.UUID;
public interface Statistic extends Identifiable, EditTrackable, Storeable<Statistic> {
/**
* The owning player of this statistic
* @return the {@link UUID} of the statistic owner
*/
@NonNull UUID getOwner();
/**
* Get the statistic type that is being tracked
* @return the tracked {@link AuctionStatisticType}
*/
@NonNull AuctionStatisticType getType();
/**
* The total value of this statistic
* @return statistic value
*/
double getValue();
}