MojangService

interface MojangService

Defines the MojangService interface for interacting with Mojang's web APIs.

Functions

Link copied to clipboard
@GET(value = "/session/minecraft/profile/{uuid}")
abstract suspend fun getProfile(@Path(value = "uuid") uuid: String): PlayerProfile

Retrieves the player's profile from the Mojang session server using their UUID.

Link copied to clipboard
@GET(value = "/users/profiles/minecraft/{username}")
abstract suspend fun getUUID(@Path(value = "username") username: String): PlayerUUIDProfile

Retrieves the player's UUID profile from the Mojang API based on the provided username.