AdventureMessage

interface AdventureMessage : Message, ComponentLike

A Brigadier Message that wraps a Component.

This class is special, as it should be is checked for internally by the command manager when a command syntax exception is thrown, so that the wrapped component is correctly serialized in to JSON.

You should use this class when you want to send a Component error message as a response to a Brigadier command.

Types

Link copied to clipboard
object Companion
Link copied to clipboard
@ApiStatus.Internal
interface Factory

Functions

Link copied to clipboard
@Contract(pure = true)
@NotNull
abstract fun asComponent(): @NotNull Component
Link copied to clipboard
abstract fun getString(): String