LiteralCommandBuilder
Functions
Adds an alias for this literal command node, which can be used instead of the main LiteralCommandBuilder.name.
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.
Converts this Kotlin command builder abstraction to an ArgumentBuilder of Brigadier.