public interface ITextComponent extends com.mojang.brigadier.Message, java.lang.Iterable<ITextComponent>
Modifier and Type | Interface and Description |
---|---|
static class |
ITextComponent.Serializer |
ITextComponent setStyle(Style style)
Style getStyle()
default ITextComponent appendText(java.lang.String text)
ITextComponent appendSibling(ITextComponent component)
java.lang.String getUnformattedComponentText()
default java.lang.String getString()
getString
in interface com.mojang.brigadier.Message
default java.lang.String getStringTruncated(int maxLen)
default java.lang.String getFormattedText()
java.util.List<ITextComponent> getSiblings()
java.util.stream.Stream<ITextComponent> stream()
default java.util.stream.Stream<ITextComponent> func_212637_f()
default java.util.Iterator<ITextComponent> iterator()
iterator
in interface java.lang.Iterable<ITextComponent>
ITextComponent shallowCopy()
default ITextComponent deepCopy()
default ITextComponent applyTextStyle(java.util.function.Consumer<Style> styleConsumer)
default ITextComponent applyTextStyles(TextFormatting... colors)
default ITextComponent applyTextStyle(TextFormatting color)
static ITextComponent copyWithoutSiblings(ITextComponent textComponent)