public final class LiteralText extends Text
LiteralText.Builder| Modifier and Type | Class and Description |
|---|---|
static class |
LiteralText.Builder
Represents a
Text.Builder creating immutable LiteralText
instances. |
NEW_LINE, PLAIN_COMPARATOR| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
String |
getContent()
Returns the plain text content of this
Text. |
int |
hashCode() |
LiteralText.Builder |
toBuilder()
Returns a new
Text.Builder with the content, formatting and actions of
this text. |
builder, builder, builder, builder, builder, builder, builder, builder, builder, builder, builder, builder, compareTo, concat, getChildren, getClickAction, getColor, getContentVersion, getFormat, getHoverAction, getShiftClickAction, getStyle, isEmpty, join, join, join, joinWith, joinWith, joinWith, of, of, of, of, of, of, of, of, replace, replace, replace, replace, toContainer, toPlain, toPlainSingle, toString, toText, trim, withChildrenclone, finalize, getClass, notify, notifyAll, wait, wait, waitapplyTopublic String getContent()
Text.public LiteralText.Builder toBuilder()
TextText.Builder with the content, formatting and actions of
this text. This can be used to edit an otherwise immutable Text
instance.