Skip to main content

Module text

Module text 

Expand description

Owned component trees. No language is resolved until the game displays a component.

Structs§

Text
A component tree, retaining translation keys, styles and ordered children.
TextForm
Flat representation of a component tree.
TextNode
One typed shallow component and its position in the tree.
TextNodeStyle
The nonrecursive form of TextStyle, with the same inheritance semantics.
TextProfile
A player profile, including ordered signed properties and unknown data.
TextProfileProperty
One signed or unsigned profile property.
TextStyle
Optional style fields inherit; explicit false overrides an inherited decoration.

Enums§

TextClick
A text component’s click action.
TextContent
What supplies the characters or inline object of a component.
TextFormError
A refused Text crossing. No partially converted fields are written.
TextHover
A text component’s hover action.
TextNbtSource
The source of an NBT component, not the NBT itself.
TextNodeContent
Shallow content. Recursive values appear only in related rows.
TextNodeHover
Shallow hover event. Text and entity-name values use related rows.
TextObject
An inline object embedded in text.
TextRelation
Relation to an earlier row. Unknown discriminants are rejected by bindings.

Constants§

MAX_TEXT_DEPTH
Maximum component depth, counted in nodes.