Class SkinFetcher

java.lang.Object
de.oliver.fancynpcs.api.utils.SkinFetcher

@Deprecated public final class SkinFetcher extends Object
Deprecated.
The skin system is deprecated and will be replaced with a slightly different system in the near future.
  • Field Details

  • Method Details

    • fetchSkin

      @Deprecated public static CompletableFuture<SkinFetcher.SkinData> fetchSkin(String identifier)
      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 null if the skin data could not be fetched.
    • fetchSkinByUUID

      @Deprecated public static CompletableFuture<SkinFetcher.SkinData> fetchSkinByUUID(String uuid)
      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 public static CompletableFuture<SkinFetcher.SkinData> fetchSkinByURL(String skinURL)
      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

      public static boolean isPlaceholder(String identifier)
      Deprecated.