of

@Contract(value = "_ -> new", pure = true)
fun of(node: LiteralCommandNode<CommandExecutionContext>): BrigadierCommand

Creates a new command backed by the given Brigadier command node.

Return

a new Brigadier command

Parameters

node

the backing command node


@Contract(value = "_ -> new", pure = true)
fun of(builder: LiteralArgumentBuilder<CommandExecutionContext>): BrigadierCommand

Creates a new command backed by the Brigadier command node built from the given builder.

Return

a new Brigadier command

Parameters

builder

the builder to build the backing command node from