TextComponent

data class TextComponent(val text: String, val color: String = "", val styles: EnumSet<TextStyle> = EnumSet.noneOf(TextStyle::class.java), val extra: List<TextComponent> = emptyList())

Represents a component of the MOTD.

Constructors

Link copied to clipboard
constructor(text: String, color: String = "", styles: EnumSet<TextStyle> = EnumSet.noneOf(TextStyle::class.java), extra: List<TextComponent> = emptyList())

Properties

Link copied to clipboard

The color of the text. Hex codes.

Link copied to clipboard

Rescue. Please check the wiki for this.

Link copied to clipboard
Link copied to clipboard

The textual content of this MOTD component.

Functions

Link copied to clipboard

Converts TextComponent to a HTML element.