Skip to content

Commit

Permalink
Change GameProfileManager method signature to return a map (#2211)
Browse files Browse the repository at this point in the history
  • Loading branch information
ImMorpheus authored Aug 24, 2020
1 parent 70fe2ca commit 76c1d81
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@

import java.io.IOException;
import java.util.Collection;
import java.util.Map;
import java.util.Optional;
import java.util.UUID;
import java.util.concurrent.CompletableFuture;
import java.util.concurrent.ExecutionException;
Expand Down Expand Up @@ -137,7 +139,7 @@ default CompletableFuture<GameProfile> get(String name) {
* @param useCache true to perform a cache lookup first
* @return The result of the request
*/
CompletableFuture<Collection<GameProfile>> getAllById(Iterable<UUID> uniqueIds, boolean useCache);
CompletableFuture<Map<UUID, Optional<GameProfile>>> getAllById(Iterable<UUID> uniqueIds, boolean useCache);

/**
* Gets a collection of {@link GameProfile}s by their user names
Expand All @@ -151,7 +153,7 @@ default CompletableFuture<GameProfile> get(String name) {
* @param useCache true to perform a cache lookup first
* @return The result of the request
*/
CompletableFuture<Collection<GameProfile>> getAllByName(Iterable<String> names, boolean useCache);
CompletableFuture<Map<String, Optional<GameProfile>>> getAllByName(Iterable<String> names, boolean useCache);

/**
* Fills a {@link GameProfile}.
Expand Down

0 comments on commit 76c1d81

Please sign in to comment.