argument

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

Adds a new argument command node with the given name and type 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

T

the argument type

name

the name of the argument

type

the argument type for parsing

builder

the builder to apply


@Contract(value = "_, _, _ -> this", mutates = "this")
inline fun <S, T, T1> RequiredArgumentBuilder<S, T>.argument(name: String, type: ArgumentType<T1>, builder: RequiredArgumentBuilder<S, T1>.() -> Unit): RequiredArgumentBuilder<S, T>

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

Return

this builder

Parameters

S

the command source type

T

the argument type of this argument

T1

the argument type of the new argument

name

the name of the argument

type

the argument type for parsing

builder

the builder to apply