Package net.skinsrestorer.api.property
Interface SkinApplier<P>
- Type Parameters:
P- Player type of the server implementation
public interface SkinApplier<P>
Applies skins to players.
-
Method Summary
Modifier and TypeMethodDescriptionvoidApplies a skin to a player that would be set on join.voidapplySkin(P player, SkinIdentifier identifier) Applies a skin to a player from a skin identifier.voidapplySkin(P player, SkinProperty property) Applies a raw skin property to a player.
-
Method Details
-
applySkin
Applies a skin to a player that would be set on join.- Parameters:
player- Player to apply the skin to.- Throws:
DataRequestException- If the skin data could not be requested.
-
applySkin
Applies a skin to a player from a skin identifier.- Parameters:
player- Player to apply the skin to.identifier- SkinIdentifier to apply
-
applySkin
Applies a raw skin property to a player. You can use this to apply custom values to a player without needing to touch the storage.- Parameters:
player- Player to apply the skin to.property- Skin property to apply
-