Interface UserResolver


public interface UserResolver
Provides the capability to resolve UUIDs and names.
Author:
A248
  • Method Summary

    Modifier and Type
    Method
    Description
    space.arim.omnibus.util.concurrent.CentralisedFuture<Optional<String>>
    Performs a full lookup of a player name from a UUID.
    space.arim.omnibus.util.concurrent.CentralisedFuture<Optional<UUID>>
    Performs a full lookup of a UUID from a player name.
  • Method Details

    • lookupUUID

      space.arim.omnibus.util.concurrent.CentralisedFuture<Optional<UUID>> lookupUUID(String name)
      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

      space.arim.omnibus.util.concurrent.CentralisedFuture<Optional<String>> lookupName(UUID uuid)
      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