McLiteralText

Represents a Minecraft literal text component.

Parameters

text

The plain text content of the text component.

Constructors

Link copied to clipboard
constructor(text: String)

Properties

Link copied to clipboard

The click event associated with this text component, if any.

Link copied to clipboard

The hover event associated with this text component, if any.

Link copied to clipboard

List of sibling text components that are displayed alongside this component.

Link copied to clipboard

List of text styles applied to this component.

Link copied to clipboard

Functions

Link copied to clipboard

Appends a collection of text components to the list of siblings.

fun append(vararg components: McTextComponent): McTextComponent

Appends one or more text components to the list of siblings.

Link copied to clipboard

Sets the click event for this text component.

Link copied to clipboard

Sets the hover event for this text component.

Link copied to clipboard

Merges this text component with another text component, combining their styles, siblings, and events.

Link copied to clipboard
open override fun toString(): String
Link copied to clipboard

Applies a style to this text component.

Applies one or more styles to this text component.