PlayerSkinSource

sealed interface PlayerSkinSource(source)

Platform-neutral source for a player skin used by PlayerHead.

Lookup sources contain no game object and are resolved asynchronously by the active version adapter.

Inheritors

Types

Link copied to clipboard

Resolves the active local player's skin.

Link copied to clipboard
data class Name(val value: String) : PlayerSkinSource

Resolves a player profile and skin from a Minecraft account name.

Link copied to clipboard
data class Pixels(val skin: DrawImage) : PlayerSkinSource

Uses one immutable normalized 64 by 64 skin snapshot.

Link copied to clipboard
data class Uuid(val value: Uuid) : PlayerSkinSource

Resolves a player skin from a profile UUID.