public static class Text.Translatable extends Text
Text
containing a Translation
identifier
that gets translated into the current locale on the client.TextBuilder.Translatable
Text.Literal, Text.Placeholder, Text.Score, Text.Selector, Text.Translatable
Modifier and Type | Field and Description |
---|---|
protected ImmutableList<Object> |
arguments |
protected Translation |
translation |
children, childrenIterable, clickAction, format, hoverAction, shiftClickAction
Modifier and Type | Method and Description |
---|---|
TextBuilder.Translatable |
builder()
Returns a new
TextBuilder with the content, formatting and
actions of this text. |
boolean |
equals(Object o) |
ImmutableList<Object> |
getArguments()
Returns the list of
Translation arguments used to format this
Text . |
Translation |
getTranslation()
Returns the translation of this
Text . |
int |
hashCode() |
String |
toString() |
getChildren, getClickAction, getColor, getFormat, getHoverAction, getShiftClickAction, getStyle, toText, withChildren
protected final Translation translation
protected final ImmutableList<Object> arguments
public final Translation getTranslation()
Text
.public final ImmutableList<Object> getArguments()
Translation
arguments used to format this
Text
.public TextBuilder.Translatable builder()
Text
TextBuilder
with the content, formatting and
actions of this text. This can be used to edit an otherwise immutable
Text
instance.