Interface SkinApplier<P>

Type Parameters:
P - Player type of the server implementation

public interface SkinApplier<P>
Applies skins to players.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    applySkin(P player)
    Applies a skin to a player that would be set on join.
    void
    applySkin(P player, SkinIdentifier identifier)
    Applies a skin to a player from a skin identifier.
    void
    applySkin(P player, SkinProperty property)
    Applies a raw skin property to a player.
  • Method Details

    • applySkin

      void applySkin(P player) throws DataRequestException
      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

      void applySkin(P player, SkinIdentifier identifier)
      Applies a skin to a player from a skin identifier.
      Parameters:
      player - Player to apply the skin to.
      identifier - SkinIdentifier to apply
    • applySkin

      void applySkin(P player, SkinProperty property)
      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