Class MojangProfileResolver
java.lang.Object
com.github.juliarn.npclib.api.profile.MojangProfileResolver
- All Implemented Interfaces:
ProfileResolver
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static final classNested classes/interfaces inherited from interface com.github.juliarn.npclib.api.profile.ProfileResolver
ProfileResolver.Cached -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static @NotNull HttpURLConnectioncreateBaseConnection(@NotNull String endpoint) private static @NotNull com.google.gson.JsonObjectmakeRequest(@NotNull String endpoint) @NotNull CompletableFuture<Profile.Resolved> resolveProfile(@NotNull Profile profile)
-
Field Details
-
INSTANCE
-
DEFAULT_TIMEOUT
private static final int DEFAULT_TIMEOUT -
GSON
private static final com.google.gson.Gson GSON -
PROFILE_PROPERTIES_TYPE
-
UUID_NO_DASH_PATTERN
-
UUID_DASHER_PATTERN
-
NAME_TO_UUID_ENDPOINT
- See Also:
-
UUID_TO_PROFILE_ENDPOINT
- See Also:
-
-
Constructor Details
-
MojangProfileResolver
MojangProfileResolver()
-
-
Method Details
-
makeRequest
@NotNull private static @NotNull com.google.gson.JsonObject makeRequest(@NotNull @NotNull String endpoint) throws IOException - Throws:
IOException
-
createBaseConnection
@NotNull private static @NotNull HttpURLConnection createBaseConnection(@NotNull @NotNull String endpoint) throws IOException - Throws:
IOException
-
resolveProfile
@NotNull public @NotNull CompletableFuture<Profile.Resolved> resolveProfile(@NotNull @NotNull Profile profile) - Specified by:
resolveProfilein interfaceProfileResolver
-