Interface Text

All Superinterfaces:
com.mojang.brigadier.Message, StringRenderable
All Known Subinterfaces:
MutableText
All Known Implementing Classes:
BaseText, KeybindText, LiteralText, NbtText, NbtText.BlockNbtText, NbtText.EntityNbtText, NbtText.StorageNbtText, ScoreText, SelectorText, TranslatableText

public interface Text
extends com.mojang.brigadier.Message, StringRenderable
A text. Can be converted to and from JSON format.

Each text has a tree structure, embodying all its siblings. To iterate contents in the text and all its siblings, call visit methods.

This interface does not expose mutation operations. For mutation, refer to MutableText.

See Also:
MutableText