Module gomint.api

Interface PlayerSkin


  • public interface PlayerSkin
    Version:
    1.0
    Author:
    BlackyPaw
    • Method Detail

      • fromURL

        static PlayerSkin fromURL​(String url)
        Get the skin from an url
        Parameters:
        url - which we should fetch
        Returns:
        skin or null on error
      • empty

        static PlayerSkin empty()
        Create a empty skin
        Returns:
      • getName

        String getName()
        Gets the name of the player's skin.
        Returns:
        The name of the player's skin
      • getRawData

        byte[] getRawData()
        Gets the raw data of the player's skin.
        Returns:
        The raw data of the player's skin
      • getCapeData

        byte[] getCapeData()
        Get cape data
        Returns:
        cape data or null
      • getGeometryName

        String getGeometryName()
        Get the name of the geometry used
        Returns:
        geometry name
      • getGeometryData

        String getGeometryData()
        Data used for geometry of the skin
        Returns:
        geometry data
      • saveSkinTo

        void saveSkinTo​(OutputStream out)
                 throws IOException
        Save the skin to a given file in PNG format
        Parameters:
        out - stream to which the image should be saved
        Throws:
        IOException - which can be thrown in case of errors while saving