Package de.oliver.fancynpcs.api.utils
Class SkinFetcher
java.lang.Object
de.oliver.fancynpcs.api.utils.SkinFetcher
Deprecated.
The skin system is deprecated and will be replaced with a slightly different system in the near future.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordDeprecated.static final recordDeprecated. -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.fetchSkinByURL(String skinURL) Deprecated.fetchSkinByUUID(String uuid) Deprecated.static SkinFetcher.SkinDatagetSkinByOnlinePlayer(org.bukkit.entity.Player player) Deprecated.static booleanisPlaceholder(String identifier) Deprecated.
-
Field Details
-
skinCache
Deprecated.
-
-
Method Details
-
fetchSkin
Deprecated.Fetches the skin data from the Mojang API asynchronously.- Parameters:
identifier- The identifier of the skin. This can be a UUID, username, URL or a placeholder by PAPI.- Returns:
- A CompletableFuture that will contain the SkinData.
-
getSkinByOnlinePlayer
@Deprecated public static SkinFetcher.SkinData getSkinByOnlinePlayer(org.bukkit.entity.Player player) Deprecated.Fetches the skin data from the online player.- Parameters:
player- The player.- Returns:
- The SkinData or
nullif the skin data could not be fetched.
-
fetchSkinByUUID
Deprecated.Fetches the skin data from the Mojang API by UUID asynchronously.- Parameters:
uuid- The UUID of the player.- Returns:
- A CompletableFuture that will contain the SkinData.
-
fetchSkinByURL
Deprecated.Fetches the skin data from the Mojang API by URL asynchronously.- Parameters:
skinURL- The URL of the skin.- Returns:
- A CompletableFuture that will contain the SkinData.
-
isPlaceholder
Deprecated.
-