Skip to content

Class endstone::Translatable

ClassList > endstone > Translatable

Represents an object with a text representation that can be translated by the Minecraft client.

  • #include <endstone/translatable.h>

Public Functions

Type Name
Translatable (std::string translate, std::vector< std::string > with={})
bool empty () const
Check if the message to be translated is empty.
const std::string & getTranslate () const
Get the message to be translated.
const std::vector< std::string > & getWith () const
Get the translation parameters.

Public Functions Documentation

function Translatable

inline explicit endstone::Translatable::Translatable (
    std::string translate,
    std::vector< std::string > with={}
) 

function empty

Check if the message to be translated is empty.

inline bool endstone::Translatable::empty () const

Returns:

true if the message to be translated is empty, false otherwise


function getTranslate

Get the message to be translated.

inline const std::string & endstone::Translatable::getTranslate () const

Returns:

the message to be translated


function getWith

Get the translation parameters.

inline const std::vector< std::string > & endstone::Translatable::getWith () const

Returns:

the translation parameters



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