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.
- Text
Form - Flat representation of a component tree.
- Text
Node - One typed shallow component and its position in the tree.
- Text
Node Style - The nonrecursive form of TextStyle, with the same inheritance semantics.
- Text
Profile - A player profile, including ordered signed properties and unknown data.
- Text
Profile Property - One signed or unsigned profile property.
- Text
Style - Optional style fields inherit; explicit
falseoverrides an inherited decoration.
Enums§
- Text
Click - A text component’s click action.
- Text
Content - What supplies the characters or inline object of a component.
- Text
Form Error - A refused Text crossing. No partially converted fields are written.
- Text
Hover - A text component’s hover action.
- Text
NbtSource - The source of an NBT component, not the NBT itself.
- Text
Node Content - Shallow content. Recursive values appear only in related rows.
- Text
Node Hover - Shallow hover event. Text and entity-name values use related rows.
- Text
Object - An inline object embedded in text.
- Text
Relation - Relation to an earlier row. Unknown discriminants are rejected by bindings.
Constants§
- MAX_
TEXT_ DEPTH - Maximum component depth, counted in nodes.