Skip to content

Class endstone::Skin

ClassList > endstone > Skin

Represents a player skin.

  • #include <endstone/skin.h>

Public Functions

Type Name
Skin (std::string id, Image image, std::optional< std::string > cape_id=std::nullopt, std::optional< Image > cape_image=std::nullopt)
const std::optional< std::string > & getCapeId () const
Gets the cape id.
const Image * getCapeImage () const
Gets the cape image.
const std::string & getId () const
Gets the skin id.
const Image & getImage () const
Gets the skin image.

Public Functions Documentation

function Skin

inline endstone::Skin::Skin (
    std::string id,
    Image image,
    std::optional< std::string > cape_id=std::nullopt,
    std::optional< Image > cape_image=std::nullopt
) 

function getCapeId

Gets the cape id.

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

Returns:

the cape id.


function getCapeImage

Gets the cape image.

inline const  Image * endstone::Skin::getCapeImage () const

Returns:

the cape image.


function getId

Gets the skin id.

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

Returns:

the skin id.


function getImage

Gets the skin image.

inline const  Image & endstone::Skin::getImage () const

Returns:

the skin image.



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