Package com.plotsquared.core.uuid
Interface UUIDService
- All Known Implementing Classes:
CacheUUIDService,OfflineModeUUIDService
public interface UUIDService
Service used to provide usernames from player UUIDs
-
Method Summary
Modifier and TypeMethodDescriptiondefault booleanCheck whether or not this service can be safely used synchronously without blocking the server for an extended amount of time.default @NonNull Collection<@NonNull UUIDMapping>Get as many UUID mappings as possible under the condition that the operation cannot be blocking (for an extended amount of time)default @Nullable UUIDMappinggetImmediately(@NonNull Object object)Get a single UUID mapping immediately, if possible@NonNull List<@NonNull UUIDMapping>Attempt to complete the given requests.@NonNull List<@NonNull UUIDMapping>Attempt to complete the given requests.
-
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
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
Get a single UUID mapping immediately, if possible
-