Package de.oliver.fancynpcs.api.utils
Klasse SkinFetcher
java.lang.Object
de.oliver.fancynpcs.api.utils.SkinFetcher
-
Verschachtelte Klassen - Übersicht
Verschachtelte KlassenModifizierer und TypKlasseBeschreibungstatic final recordRepresents the cached skin data.static final recordRepresents all required data for a skin. -
Feldübersicht
Felder -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungFetches the skin data from the Mojang API asynchronously.fetchSkinByURL(String skinURL) Fetches the skin data from the Mojang API by URL asynchronously.fetchSkinByUUID(String uuid) Fetches the skin data from the Mojang API by UUID asynchronously.static SkinFetcher.SkinDatagetSkinByOnlinePlayer(org.bukkit.entity.Player player) Fetches the skin data from the online player.static booleanisPlaceholder(String identifier)
-
Felddetails
-
skinCache
-
-
Methodendetails
-
fetchSkin
Fetches the skin data from the Mojang API asynchronously.- Parameter:
identifier- The identifier of the skin. This can be a UUID, username, URL or a placeholder by PAPI.- Gibt zurück:
- A CompletableFuture that will contain the SkinData.
-
getSkinByOnlinePlayer
Fetches the skin data from the online player.- Parameter:
player- The player.- Gibt zurück:
- The SkinData or
nullif the skin data could not be fetched.
-
fetchSkinByUUID
Fetches the skin data from the Mojang API by UUID asynchronously.- Parameter:
uuid- The UUID of the player.- Gibt zurück:
- A CompletableFuture that will contain the SkinData.
-
fetchSkinByURL
Fetches the skin data from the Mojang API by URL asynchronously.- Parameter:
skinURL- The URL of the skin.- Gibt zurück:
- A CompletableFuture that will contain the SkinData.
-
isPlaceholder
-