MessageTextConverter

Converts a McTextComponent into a platform-specific Message suitable for use with brigadier (e.g. as the message inside a CommandSyntaxException).

Implementations preserve literal and translatable components where the platform allows — typically either by producing a native Message implementation (Vanilla Component, Velocity's VelocityBrigadierMessage) or by wrapping the component in a platform-specific Message that the command error-handling path recognizes and unwraps.

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
abstract fun convert(text: McTextComponent): Message

Converts a McTextComponent into a brigadier Message.