NameAndUUID

@Serializable
data class NameAndUUID(val name: String, val id: UUID)

Represents a Mojang profile consisting of a Minecraft username and its UUID.

This class is used as the decoded result of Mojang API calls and is also serialized to disk as part of the friend list.

Constructors

Link copied to clipboard
constructor(name: String, id: UUID)

Properties

Link copied to clipboard
@Serializable(with = UUIDSerializer::class)
val id: UUID

the UUID of the player, serialized using UUIDSerializer

Link copied to clipboard

the current Minecraft username associated with the UUID