Interface UserResolver
public interface UserResolver
Provides the capability to resolve UUIDs and names.
- Author:
- A248
-
Method Summary
Modifier and TypeMethodDescriptionlookupName(UUID uuid) Performs a full lookup of a player name from a UUID.lookupUUID(String name) Performs a full lookup of a UUID from a player name.
-
Method Details
-
lookupUUID
Performs a full lookup of a UUID from a player name. May contact external APIs such as the Mojang API.- Parameters:
name- the player name- Returns:
- a future yielding the UUID or an empty optional if not found
-
lookupName
Performs a full lookup of a player name from a UUID. May contact external APIs such as the Mojang API.- Parameters:
uuid- the uuid- Returns:
- a future yielding the player name or an empty optional if not found
-