mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-02 14:38:49 +00:00
Shove login processing into an async task.
ez
This commit is contained in:
1 parent
c1ef5ff8ae
commit
cbd1d66f60
4 files changed
+27
-14
No files matched your search
@@ -4,20 +4,19 @@ import org.checkerframework.checker.nullness.qual.NonNull;
|
||||
import org.checkerframework.checker.nullness.qual.Nullable;
|
||||
|
||||
import java.util.UUID;
|
||||
import java.util.concurrent.CompletableFuture;
|
||||
|
||||
public interface UserService<T extends PlayerUser> {
|
||||
|
||||
@NonNull
|
||||
T wrap(UUID uuid);
|
||||
@Nullable <C extends ConsoleUser> C consoleUser();
|
||||
|
||||
@Nullable // Maybe NonNull?
|
||||
<C extends ConsoleUser> C consoleUser();
|
||||
@NonNull T wrap(@NonNull UUID uuid);
|
||||
|
||||
@Nullable
|
||||
T wrapIfLoaded(@NonNull UUID uuid);
|
||||
@NonNull CompletableFuture<T> wrapLater(@NonNull UUID uuid);
|
||||
|
||||
@Nullable
|
||||
T refreshUser(@NonNull UUID uuid);
|
||||
@Nullable T wrapIfLoaded(@NonNull UUID uuid);
|
||||
|
||||
@Nullable T refreshUser(@NonNull UUID uuid);
|
||||
|
||||
void onDisable();
|
||||
|
||||
|
||||
Reference in new issue
Block a user