mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-01 22:15:08 +00:00
Single module setup
This commit is contained in:
1 parent
ad9a794156
commit
66217f6534
70 files changed
+92
-138
No files matched your search
@@ -0,0 +1,29 @@
|
||||
package net.draycia.carbon.storage;
|
||||
|
||||
import org.bukkit.OfflinePlayer;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
public interface UserService {
|
||||
|
||||
ChatUser wrap(String name);
|
||||
ChatUser wrap(OfflinePlayer player);
|
||||
ChatUser wrap(UUID uuid);
|
||||
|
||||
@Nullable
|
||||
default ChatUser wrapIfLoaded(OfflinePlayer player) {
|
||||
return wrapIfLoaded(player.getUniqueId());
|
||||
}
|
||||
|
||||
@Nullable
|
||||
ChatUser wrapIfLoaded(UUID uuid);
|
||||
|
||||
ChatUser refreshUser(UUID uuid);
|
||||
|
||||
void onDisable();
|
||||
|
||||
void invalidate(ChatUser user);
|
||||
void validate(ChatUser user);
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user