endstone::Translatable
Represents an object with a text representation that can be translated by the Minecraft client.
Functions:
Name | Description |
---|---|
Translatable | |
empty | Check if the message to be translated is empty. |
getParameters | Get the translation parameters. |
getText | Get 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