loadCurrentMinecraftPlayerSkin

Snapshots the current client's selected 64 by 64 player skin for portable PlayerHead rendering.

Resource-backed default skins are resolved through the active resource manager, so a higher-priority resource pack may replace them. Downloaded skins are copied from Minecraft's registered dynamic texture after its skin pipeline has normalized legacy dimensions. The returned image retains neither the player, texture manager, resource, stream, nor native image.

Return

immutable detached straight-ARGB pixels for the current selected skin.

Throws

when the selected texture kind or normalized dimensions are unsupported.

when no current player exists, the downloaded texture is unavailable, or the function is called away from the Minecraft client thread.

when a selected resource-backed skin cannot be decoded.