public static class Text.Literal extends Text
TextBuilder.Literal
Text.Literal, Text.Placeholder, Text.Score, Text.Selector, Text.Translatable
Modifier and Type | Field and Description |
---|---|
protected String |
content |
children, childrenIterable, clickAction, format, hoverAction, shiftClickAction
Modifier and Type | Method and Description |
---|---|
TextBuilder.Literal |
builder()
Returns a new
TextBuilder with the content, formatting and
actions of this text. |
boolean |
equals(Object o) |
String |
getContent()
Returns the plain text content of this
Text . |
int |
hashCode() |
String |
toString() |
getChildren, getClickAction, getColor, getFormat, getHoverAction, getShiftClickAction, getStyle, toText, withChildren
protected final String content
public final String getContent()
Text
.public TextBuilder.Literal builder()
Text
TextBuilder
with the content, formatting and
actions of this text. This can be used to edit an otherwise immutable
Text
instance.