ArgumentCommandBuilder
Functions
Adds a new argument to this command. The ArgumentType will be resolved using the reified type T. For a list of supported types, have a look at ArgumentTypeUtils.fromReifiedType, as it is the function used by this builder function.
Adds a new argument to this command. This variant of the argument function allows you to specify the ArgumentType in the classical Brigadier way.
Adds a new argument to this command. This variant of the argument function you to specifiy the argument parse logic using a Kotlin lambda function (parser).
Adds a new argument to this command. This variant of the argument function allows you to pass and argument which depends on the CommandBuildContext.
Adds custom execution logic to this command. DEPRECATED Use runs instead.
Adds custom suspending suggestion logic for an argument.
Suggest the entries of the iterable which is the result of the suggestionsBuilder.
Suggest the entries of the iterable which is the result of the suggestionsBuilder.
Suggest the entries of the iterable which is the result of the suggestionsBuilder. Additionaly, a separate tooltip associated with each suggestion will be shown as well.
Suggest the entries of the iterable which is the result of the suggestionsBuilder. Additionaly, a separate tooltip associated with each suggestion will be shown as well.
Suggest the value which is the result of the suggestionBuilder.
Suggest the value which is the result of the suggestionBuilder.
Suggest the value which is the result of the suggestionBuilder. Additionaly, a separate tooltip associated with the suggestion will be shown as well.
Suggest the value which is the result of the suggestionBuilder. Additionaly, a separate tooltip associated with the suggestion will be shown as well.
Converts this Kotlin command builder abstraction to an ArgumentBuilder of Brigadier.