getHead

open suspend override fun getHead(userId: UUID, includeOverlay: Boolean): HeadInfo?

Retrieves the current head of the supplied userId from Xenos. The result includes the moment when the data was fetched from the Mojang API, to that stale data can be identified. The overlay skin layer may be included. If the player cannot be found, null will be returned. The texture is guaranteed to be present within the memory and therefore easily accessible.