Interface SkinManager
public interface SkinManager
-
Method Summary
Modifier and TypeMethodDescriptiongetByFile(String filePath, SkinData.SkinVariant variant) Fetch a skin by a file path pointing to a skin image (relative to plugins/FancyNPCs/skins)getByIdentifier(String identifier, SkinData.SkinVariant variant) Fetch a skin by its identifier and variantgetByURL(String url, SkinData.SkinVariant variant) Fetch a skin by a URL pointing to a skin imagegetByUsername(String username, SkinData.SkinVariant variant) Fetch a skin by a username of a playergetByUUID(UUID uuid, SkinData.SkinVariant variant) Fetch a skin by a UUID of a player
-
Method Details
-
getByIdentifier
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
SkinGeneratedEventto get the skin data
-
getByUUID
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
SkinGeneratedEventto get the skin data
-
getByUsername
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
SkinGeneratedEventto get the skin data
-
getByURL
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
SkinGeneratedEventto get the skin data
-
getByFile
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
SkinGeneratedEventto get the skin data
-