Interface GameProfileProvider
- All Known Subinterfaces:
GameProfileManager
GameProfile
s.-
Method Summary
Modifier and TypeMethodDescriptiondefault CompletableFuture<GameProfile>
basicProfile
(String name) Attempts to get a basicGameProfile
for the given name.basicProfile
(String name, @Nullable Instant time) Attempts to get a basicGameProfile
for the given name.basicProfile
(UUID uniqueId) Attempts to get a basicGameProfile
for the given unique id.default CompletableFuture<Map<String,
GameProfile>> basicProfiles
(Iterable<String> names) Attempts to get a basicGameProfile
s for the given names.basicProfiles
(Iterable<String> names, @Nullable Instant time) Attempts to get a basicGameProfile
s for the given names.default CompletableFuture<GameProfile>
Attempts to get a fullGameProfile
for the given name.Attempts to get a fullGameProfile
for the given name.default CompletableFuture<GameProfile>
Attempts to get a fullGameProfile
for the given unique id.Attempts to get a fullGameProfile
for the given unique id.default CompletableFuture<GameProfile>
profile
(GameProfile profile) Attempts to get a fullGameProfile
for the given profile.default CompletableFuture<GameProfile>
profile
(GameProfile profile, boolean signed) Attempts to get a fullGameProfile
for the given profile.
-
Method Details
-
basicProfile
Attempts to get a basicGameProfile
for the given unique id.Basic game profiles don't include any profile properties.
The
CompletableFuture
can fail with aProfileNotFoundException
if no profile was found with the given unique id.- Parameters:
uniqueId
- The unique id- Returns:
- The profile found for the given unique id
-
basicProfile
Attempts to get a basicGameProfile
for the given name.Basic game profiles don't include any profile properties.
The
CompletableFuture
can fail with aProfileNotFoundException
if no profile was found with the given name.The requested name is matched case insensitively, the corrected name will be present in the
GameProfile
.- Parameters:
name
- The name- Returns:
- The profile found for the given name
-
basicProfile
Attempts to get a basicGameProfile
for the given name.Basic game profiles don't include any profile properties.
The
CompletableFuture
can fail with aProfileNotFoundException
if no profile was found with the given name.The requested name is matched case insensitively, the corrected name will be present in the
GameProfile
.- Parameters:
name
- The nametime
- The time at which the name was assigned to a specific profile, or null if current- Returns:
- The profile found for the given name
-
basicProfiles
Attempts to get a basicGameProfile
s for the given names.Basic game profiles don't include any profile properties.
The requested names are matched case insensitively, the corrected names will be present in the
GameProfile
s.- Parameters:
names
- The names- Returns:
- The profiles found for the given names
-
basicProfiles
CompletableFuture<Map<String,GameProfile>> basicProfiles(Iterable<String> names, @Nullable Instant time) Attempts to get a basicGameProfile
s for the given names.Basic game profiles don't include any profile properties.
The requested names are matched case insensitively, the corrected names will be present in the
GameProfile
s.- Parameters:
names
- The namestime
- The time at which the names were assigned to specific profiles, or null if current- Returns:
- The profiles found for the given names
-
profile
Attempts to get a fullGameProfile
for the given profile.The
CompletableFuture
can fail with aProfileNotFoundException
if no profile was found with the unique id of the given profile.- Parameters:
profile
- The profile- Returns:
- The profile found for the given unique id
-
profile
Attempts to get a fullGameProfile
for the given profile.The
CompletableFuture
can fail with aProfileNotFoundException
if no profile was found with the unique id of the given profile.- Parameters:
profile
- The profilesigned
- Whether property values should be signed- Returns:
- The profile found for the given unique id
-
profile
Attempts to get a fullGameProfile
for the given name.The
CompletableFuture
can fail with aProfileNotFoundException
if no profile was found with the given name.- Parameters:
name
- The name- Returns:
- The profile found for the given name
-
profile
Attempts to get a fullGameProfile
for the given unique id.The
CompletableFuture
can fail with aProfileNotFoundException
if no profile was found with the given unique id.- Parameters:
uniqueId
- The unique id- Returns:
- The profile found for the given unique id
-
profile
Attempts to get a fullGameProfile
for the given name.The
CompletableFuture
can fail with aProfileNotFoundException
if no profile was found with the given name.- Parameters:
name
- The namesigned
- Whether property values should be signed- Returns:
- The profile found for the given name
-
profile
Attempts to get a fullGameProfile
for the given unique id.The
CompletableFuture
can fail with aProfileNotFoundException
if no profile was found with the given unique id.- Parameters:
uniqueId
- The unique idsigned
- Whether property values should be signed- Returns:
- The profile found for the given unique id
-