Interface UUIDService

All Known Implementing Classes:
CacheUUIDService, OfflineModeUUIDService

public interface UUIDService
Service used to provide usernames from player UUIDs
  • Method Details

    • getNames

      Attempt to complete the given requests. Returns the mappings that could be created by this server
      Parameters:
      uuids - Requests
      Returns:
      Completed requests
    • getUUIDs

      Attempt to complete the given requests. Returns the mappings that could be created by this server
      Parameters:
      usernames - Requests
      Returns:
      Completed requests
    • getImmediately

      default @NonNull Collection<@NonNull UUIDMapping> getImmediately()
      Get as many UUID mappings as possible under the condition that the operation cannot be blocking (for an extended amount of time)
      Returns:
      All mappings that could be provided immediately
    • canBeSynchronous

      default boolean canBeSynchronous()
      Check whether or not this service can be safely used synchronously without blocking the server for an extended amount of time.
      Returns:
      true if the service can be used synchronously
    • getImmediately

      default @Nullable UUIDMapping getImmediately(@NonNull Object object)
      Get a single UUID mapping immediately, if possible
      Parameters:
      object - Username (String) or UUID
      Returns:
      Mapping, if it could be found immediately