Interface SkinManager


public interface SkinManager
  • Method Details

    • getByIdentifier

      SkinData getByIdentifier(String identifier, SkinData.SkinVariant variant)
      Fetch a skin by its identifier and variant
      Parameters:
      identifier - either a valid UUID, username, URL or file path
      Returns:
      the skin data, if the skin was cached. Otherwise, null is returned and the skin is fetched asynchronously. You can listen to the SkinGeneratedEvent to get the skin data
    • getByUUID

      SkinData getByUUID(UUID uuid, SkinData.SkinVariant variant)
      Fetch a skin by a UUID of a player
      Returns:
      the skin data, if the skin was cached. Otherwise, null is returned and the skin is fetched asynchronously. You can listen to the SkinGeneratedEvent to get the skin data
    • getByUsername

      SkinData getByUsername(String username, SkinData.SkinVariant variant)
      Fetch a skin by a username of a player
      Returns:
      the skin data, if the skin was cached. Otherwise, null is returned and the skin is fetched asynchronously. You can listen to the SkinGeneratedEvent to get the skin data
    • getByURL

      SkinData getByURL(String url, SkinData.SkinVariant variant)
      Fetch a skin by a URL pointing to a skin image
      Returns:
      the skin data, if the skin was cached. Otherwise, null is returned and the skin is fetched asynchronously. You can listen to the SkinGeneratedEvent to get the skin data
    • getByFile

      SkinData getByFile(String filePath, SkinData.SkinVariant variant)
      Fetch a skin by a file path pointing to a skin image (relative to plugins/FancyNPCs/skins)
      Returns:
      the skin data, if the skin was cached. Otherwise, null is returned and the skin is fetched asynchronously. You can listen to the SkinGeneratedEvent to get the skin data