mirror of
https://github.com/kiranhart/Auction-House.git
synced 2025-02-28 21:41:02 +01:00
🟢 new auction user interface
Took 2 minutes
This commit is contained in:
parent
c335f49ac7
commit
d7aa0e64a6
16
src/main/java/ca/tweetzy/auctionhouse/api/SortType.java
Normal file
16
src/main/java/ca/tweetzy/auctionhouse/api/SortType.java
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
package ca.tweetzy.auctionhouse.api;
|
||||||
|
|
||||||
|
import ca.tweetzy.auctionhouse.api.sync.Navigable;
|
||||||
|
|
||||||
|
public enum SortType implements Navigable<SortType> {
|
||||||
|
|
||||||
|
NEWEST,
|
||||||
|
OLDEST,
|
||||||
|
HIGHEST_PRICE,
|
||||||
|
LOWEST_PRICE;
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public Class<SortType> enumClass() {
|
||||||
|
return SortType.class;
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,30 @@
|
|||||||
|
package ca.tweetzy.auctionhouse.api.auction;
|
||||||
|
|
||||||
|
import ca.tweetzy.auctionhouse.api.sync.Identifiable;
|
||||||
|
import ca.tweetzy.auctionhouse.api.sync.Storeable;
|
||||||
|
import ca.tweetzy.auctionhouse.api.sync.Synchronize;
|
||||||
|
import org.bukkit.Bukkit;
|
||||||
|
import org.bukkit.entity.Player;
|
||||||
|
import org.jetbrains.annotations.Nullable;
|
||||||
|
|
||||||
|
import java.util.UUID;
|
||||||
|
|
||||||
|
public interface AuctionUser extends Identifiable<UUID>, Storeable<AuctionUser>, Synchronize {
|
||||||
|
|
||||||
|
String getLastKnownName();
|
||||||
|
|
||||||
|
void setLastKnownName(String lastKnownName);
|
||||||
|
|
||||||
|
long getLastListedTime();
|
||||||
|
|
||||||
|
void setLastListedTime(long time);
|
||||||
|
|
||||||
|
UserSettings getSettings();
|
||||||
|
|
||||||
|
void setSettings(UserSettings settings);
|
||||||
|
|
||||||
|
@Nullable
|
||||||
|
default Player getPlayer() {
|
||||||
|
return Bukkit.getPlayer(getId());
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user