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={})  | 
|
| const std::vector< std::string > & | getParameters () const Get the translation parameters.  | 
| const std::string & | getTranslationKey () const Get the translation key for use in a translation component.  | 
Public Functions Documentation¶
function Translatable¶
inline endstone::Translatable::Translatable (
    std::string translate,
    std::vector< std::string > with={}
) 
function getParameters¶
Get the translation parameters.
Returns:
the translation parameters
function getTranslationKey¶
Get the translation key for use in a translation component.
Returns:
the translation key
The documentation for this class was generated from the following file include/endstone/translatable.h