Skip to Content
⚠ Under Construction
ReferenceC++ APITranslatable

endstone::Translatable

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

Functions:

NameDescription
Translatable
emptyCheck if the message to be translated is empty.
getParametersGet the translation parameters.
getTextGet the text to be translated.

Translatable

Translatable(std::string text, std::vector<std::string> params = {})

empty

bool empty() const

Check if the message to be translated is empty.

Returns:

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

getParameters

const std::vector<std::string> &getParameters() const

Get the translation parameters.

Returns:

the translation parameters

getText

const std::string &getText() const

Get the text to be translated.

Returns:

the text to be translated

Last updated on