TextComponent

@Serializable
data class TextComponent(val text: String, val color: String = "", val styles: Set<TextStyle> = emptySet(), val extra: List<TextComponent> = emptyList())

Colored minecraft text representation.

Constructors

Link copied to clipboard
constructor(text: String, color: String = "", styles: Set<TextStyle> = emptySet(), extra: List<TextComponent> = emptyList())

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Hex color code.

Link copied to clipboard

Child components.

Link copied to clipboard

Text styles.

Link copied to clipboard

Raw text.

Functions

Link copied to clipboard
Link copied to clipboard