argument
fun <V> argument(name: String, type: ArgumentType<V>, creator: CommandCreator<RequiredArgumentBuilder<CommandSourceStack, V>>.() -> Unit = {}): CommandCreator<T>
Adds a required argument to the command.
Return
this CommandCreator instance for chaining
Parameters
name
the name of the argument
type
the Brigadier ArgumentType for this argument
creator
the configuration block for the command structure following this argument
Type Parameters
V
the type of the argument value