SkinManager

interface SkinManager

Manages the retrieval and caching of player skins.

This manager handles fetching skin data from various sources (e.g., Mojang, SkinsRestorer) and provides a fallback skin when a profile cannot be resolved.

Since

1.15.2

Functions

Link copied to clipboard
@NotNull
abstract fun complete(@NotNull profile: @NotNull ModelProfile.Uncompleted): @NotNull CompletableFuture<out SkinData>
Asynchronously completes an uncompleted model profile to retrieve its skin data.
Link copied to clipboard
@NotNull
abstract fun fallback(): @NotNull SkinData
Returns the fallback skin data used when a skin cannot be resolved.
Link copied to clipboard
abstract fun removeCache(@NotNull profile: @NotNull ModelProfile)
Removes a specific profile from the skin cache.