public class ProfileCache extends Object
Constructor and Description |
---|
ProfileCache() |
Modifier and Type | Method and Description |
---|---|
static CompletableFuture<GlowPlayerProfile> |
getProfile(UUID uuid)
Look up the GlowPlayerProfile for a given UUID.
|
static CompletableFuture<UUID> |
getUuid(String playerName)
Look up the UUID for a given username.
|
static UUID |
getUuidCached(String playerName)
Look up the UUID for a given username, but only in the cache and not on the Mojang server.
|
public static CompletableFuture<GlowPlayerProfile> getProfile(UUID uuid)
uuid
- The UUID to look up.public static CompletableFuture<UUID> getUuid(String playerName)
playerName
- The name to look up.Copyright © 2021. All rights reserved.