public interface Text extends com.mojang.brigadier.Message, Iterable<Text>
Modifier and Type | Interface and Description |
---|---|
static class |
Text.Serializer |
Modifier and Type | Method and Description |
---|---|
default Text |
append(String text) |
Text |
append(Text text) |
default String |
asFormattedString() |
String |
asString() |
default String |
asTruncatedString(int length) |
Text |
copy() |
static Text |
copyWithoutChildren(Text text) |
default Text |
deepCopy() |
default Text |
formatted(Formatting formatting) |
default Text |
formatted(Formatting[] formatting) |
List<Text> |
getSiblings() |
default String |
getString() |
Style |
getStyle() |
default Iterator<Text> |
iterator() |
Text |
setStyle(Style style) |
Stream<Text> |
stream() |
default Stream<Text> |
streamCopied() |
default Text |
styled(Consumer<Style> transformer) |
forEach, spliterator
Style getStyle()
String asString()
default String getString()
getString
in interface com.mojang.brigadier.Message
default String asTruncatedString(int length)
default String asFormattedString()
Text copy()
default Text deepCopy()
default Text formatted(Formatting[] formatting)
default Text formatted(Formatting formatting)