public final class TranslatableText extends Text
Text containing a Translation identifier that
gets translated into the current locale on the client.TranslatableText.Builder| Modifier and Type | Class and Description |
|---|---|
static class |
TranslatableText.Builder
Represents a
Text.Builder creating immutable
TranslatableText instances. |
EMPTY, NEW_LINE, PLAIN_COMPARATOR| Modifier and Type | Method and Description |
|---|---|
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() |
TranslatableText.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 Translation getTranslation()
Text.public ImmutableList<Object> getArguments()
Translation arguments used to format this
Text.public TranslatableText.Builder toBuilder()
TextText.Builder with the content, formatting and actions of
this text. This can be used to edit an otherwise immutable Text
instance.