Package de.jvstvshd.necrify.common.user
Class MojangAPI
java.lang.Object
de.jvstvshd.necrify.common.user.MojangAPI
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetPlayerName(@NotNull UUID uuid) static @NotNull CompletableFuture<Optional<String>> getPlayerNameAsync(@NotNull UUID uuid, ExecutorService executor)
-
Constructor Details
-
MojangAPI
public MojangAPI()
-
-
Method Details
-
getPlayerName
@NotNull public static @NotNull Optional<String> getPlayerName(@NotNull @NotNull UUID uuid) throws IOException, InterruptedException - Throws:
IOExceptionInterruptedException
-
getPlayerNameAsync
@NotNull public static @NotNull CompletableFuture<Optional<String>> getPlayerNameAsync(@NotNull @NotNull UUID uuid, ExecutorService executor) -
getUuid
@NotNull public static @NotNull Optional<UUID> getUuid(@NotNull @NotNull String name) throws IOException, InterruptedException - Throws:
IOExceptionInterruptedException
-