Skip to Content
⚠ Under Construction
ReferenceC++ APILabel

endstone::Label

Represents a text label.

Functions:

NameDescription
Label
Label
getTextGets the text of the label.
setTextSets the text of the label.

Label

Label() = default
Label(Message text)

getText

Message getText() const

Gets the text of the label.

Returns:

The text of the label.

setText

Label &setText(Message text)

Sets the text of the label.

Parameters:

  • text The new text for the label.

Returns:

A reference to the current label.

Last updated on