mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-02 14:38:49 +00:00
Clean up
This commit is contained in:
22 files changed
+181
-237
No files matched your search
@@ -20,15 +20,11 @@
|
||||
package net.draycia.carbon.api;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.UUID;
|
||||
import java.util.concurrent.CompletableFuture;
|
||||
import net.draycia.carbon.api.users.CarbonPlayer;
|
||||
import net.draycia.carbon.api.users.UserManager;
|
||||
import net.kyori.adventure.audience.Audience;
|
||||
import org.checkerframework.checker.nullness.qual.NonNull;
|
||||
import org.checkerframework.checker.nullness.qual.Nullable;
|
||||
import org.checkerframework.framework.qual.DefaultQualifier;
|
||||
import org.jetbrains.annotations.ApiStatus;
|
||||
|
||||
/**
|
||||
* The server that carbon is running on.
|
||||
@@ -62,29 +58,4 @@ public interface CarbonServer extends Audience {
|
||||
*/
|
||||
UserManager<? extends CarbonPlayer> userManager();
|
||||
|
||||
/**
|
||||
* Obtains the desired user's UUID.
|
||||
*
|
||||
* @param username the user's username
|
||||
* @return the user's UUID
|
||||
* @since 2.0.0
|
||||
*/
|
||||
@ApiStatus.Internal
|
||||
CompletableFuture<@Nullable UUID> resolveUUID(String username, boolean cacheOnly);
|
||||
|
||||
/**
|
||||
* Obtains the desired player's name.
|
||||
*
|
||||
* @param uuid the user's UUID
|
||||
* @return the user's name
|
||||
* @since 2.0.0
|
||||
*/
|
||||
@ApiStatus.Internal
|
||||
CompletableFuture<@Nullable String> resolveName(UUID uuid, boolean cacheOnly);
|
||||
|
||||
@ApiStatus.Internal
|
||||
default CompletableFuture<@Nullable String> resolveName(final UUID uuid) {
|
||||
return this.resolveName(uuid, false);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user