HeadInfo

data class HeadInfo(val texture: BufferedImage, val retrievedAt: Instant, val default: Boolean)

A HeadInfo is the response to the request of the head texture of a specific player. The result includes the moment when this information was freshly retrieved from Mojang and may be stale or outdated, if Xenos is configured to return those values. The texture is optimized for fast retrieval and all data is stored in memory.

Constructors

Link copied to clipboard
constructor(texture: BufferedImage, retrievedAt: Instant, default: Boolean)

Properties

Link copied to clipboard

Whether this includes the default skin, as the supplied player did not have a custom skin configured.

Link copied to clipboard

The moment when this data was originally fetched from the MojangAPI and when it was considered fresh.

Link copied to clipboard

The loaded texture of the head that was requested for the supplied player.