literal

@Contract(value = "_, _ -> this", mutates = "this")
inline fun <S> LiteralArgumentBuilder<S>.literal(name: String, builder: LiteralArgumentBuilder<S>.() -> Unit): LiteralArgumentBuilder<S>

Adds a new literal command node with the given name to this literal, applying the given builder to the node and returning this builder as the result.

Return

this builder

Parameters

S

the command source type

name

the name of the literal

builder

the builder to apply