literal

fun literal(name: String, block: CmdLiteralScope.() -> Unit): LiteralArgumentBuilder<ClientCommandSource>

Builds a literal directly as a Brigadier builder using the typed command DSL. Register the returned builder through com.mojang.brigadier.CommandDispatcher.register.


fun literal(name: String): LiteralArgumentBuilder<ClientCommandSource>

Thin aliases that fix the source type of the Brigadier builders to ClientCommandSource, mirroring the convenience factories of Minecraft's Commands class (Commands.literal / Commands.argument).