Skip to content

Class endstone::Skin

ClassList > endstone > Skin

Represents a player skin.

  • #include <endstone/skin.h>

Classes

Type Name
struct ImageData

Public Functions

Type Name
Skin () = default
Skin (std::string skin_id, ImageData skin_data, std::optional< std::string > cape_id=std::nullopt, std::optional< ImageData > cape_data=std::nullopt)
const std::optional< ImageData > & getCapeData () const
Gets the cape data.
const std::optional< std::string > & getCapeId () const
Gets the cape id.
const ImageData & getSkinData () const
Gets the skin data.
const std::string & getSkinId () const
Gets the skin id.

Public Functions Documentation

function Skin [½]

endstone::Skin::Skin () = default

function Skin [2/2]

inline endstone::Skin::Skin (
    std::string skin_id,
    ImageData skin_data,
    std::optional< std::string > cape_id=std::nullopt,
    std::optional< ImageData > cape_data=std::nullopt
) 

function getCapeData

Gets the cape data.

inline const std::optional< ImageData > & endstone::Skin::getCapeData () const

Returns:

the cape data.


function getCapeId

Gets the cape id.

inline const std::optional< std::string > & endstone::Skin::getCapeId () const

Returns:

the cape id.


function getSkinData

Gets the skin data.

inline const ImageData & endstone::Skin::getSkinData () const

Returns:

the skin data.


function getSkinId

Gets the skin id.

inline const std::string & endstone::Skin::getSkinId () const

Returns:

the skin id.



The documentation for this class was generated from the following file include/endstone/skin.h