public interface TextRepresentable extends TextElement
Modifier and Type | Method and Description |
---|---|
default void |
applyTo(Text.Builder builder)
Applies this element to the end of the specified builder.
|
Text |
toText()
Gets the textual representation of this instance for its usage in other
Text objects. |
Text toText()
Text
objects. This may but does not need to include
hover texts
or other actions
. This
method is basically the toString()
equivalent
for Text
s.default void applyTo(Text.Builder builder)
TextElement
applyTo
in interface TextElement
builder
- Text builder to apply to