of

@Contract(value = "_ -> new", pure = true)
fun of(component: Component): AdventureMessage

Creates a new Brigadier message that wraps the given component.

Return

a new adventure message

Parameters

component

the component message