This commit is contained in:
Jason Penilla committed 2023-03-21 15:09:24 -07:00
1 parent 172750adc3
commit d5e32eae3f
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);
}
}