McTextComponent
Represents a Minecraft text component.
This abstract class serves as the base for creating rich-text components used in Minecraft messages. It provides methods for adding styles, handling click and hover events, and composing text components.
Inheritors
Properties
The click event associated with this text component, if any.
The hover event associated with this text component, if any.
List of sibling text components that are displayed alongside this component.
List of text styles applied to this component.
Functions
Appends one or more text components to the list of siblings.
Appends a collection of text components to the list of siblings.
Sets the click event for this text component.
Sets the hover event for this text component.
Merges this text component with another text component, combining their styles, siblings, and events.
Applies one or more styles to this text component.
Applies a style to this text component.