Skip to content

Type Alias: PlayerHeadSkinResolver ​

ts
type PlayerHeadSkinResolver = (url) => string | undefined | Promise<string | undefined>;

Defined in: packages/minerender/src/skin/PlayerHeadTextures.ts:22

Chooses where a player-head skin downloads from. Receives the URL MineRender would load: the Mojang texture URL from a profile's textures property, or a skin-service URL for a profile with only a name or UUID. Returns the URL to load instead, such as a same-origin proxy, blob:, or data: URL, or undefined to draw the profile's default skin without a request.

Parameters ​

ParameterType
urlstring

Returns ​

string | undefined | Promise<string | undefined>