9
0
mirror of https://github.com/Xiao-MoMi/Custom-Fishing.git synced 2025-12-30 04:19:30 +00:00

market placeholders

This commit is contained in:
XiaoMoMi
2023-10-23 18:47:07 +08:00
parent c6ace1b8b3
commit 7ee17c0cc9
7 changed files with 180 additions and 2 deletions

View File

@@ -34,6 +34,8 @@ public interface MarketManager {
*
* @return An integer representing the current date.
*/
int getCachedDate();
int getDate();
/**

View File

@@ -24,6 +24,7 @@ import net.momirealms.customfishing.api.data.user.OnlineUser;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import java.util.Collection;
import java.util.Optional;
import java.util.UUID;
import java.util.concurrent.CompletableFuture;
@@ -45,6 +46,8 @@ public interface StorageManager {
*/
@Nullable OnlineUser getOnlineUser(UUID uuid);
Collection<OnlineUser> getOnlineUsers();
/**
* Asynchronously retrieves an OfflineUser instance for the specified UUID.
* The offline user might be a locked one with no data, use isLockedData() method