MessageTextConverter
interface 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.
Functions
Link copied to clipboard
Converts a McTextComponent into a brigadier Message.