Klasse SkinFetcher

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

public final class SkinFetcher extends Object
  • Felddetails

  • Methodendetails

    • fetchSkin

      public static CompletableFuture<SkinFetcher.SkinData> fetchSkin(String identifier)
      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

      public static SkinFetcher.SkinData getSkinByOnlinePlayer(org.bukkit.entity.Player player)
      Fetches the skin data from the online player.
      Parameter:
      player - The player.
      Gibt zurück:
      The SkinData or null if the skin data could not be fetched.
    • fetchSkinByUUID

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

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

      public static boolean isPlaceholder(String identifier)