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.
This function allows you to access the regular Brigadier builder. The type of this
in its context will equal the type of Builder.
Adds a new subcommand / literal to this command.
Specifies that the given predicate must return true for the Source in order for it to be able to execute this part of the command tree. Use this function on the root command node to secure the whole command.
Specifies that the given permission level is required to execute this part of the command tree. A shortcut delegating to requires.
Specifies that the PermissionLevel given as level is required to execute this part of the command tree. A shortcut delegating to requires.
Adds execution logic to this command. The place where this function is called matters, as this defines for which path in the command tree this executor should be called.
Adds custom execution logic to this command. DEPRECATED Use runs instead.
Converts this Kotlin command builder abstraction to an ArgumentBuilder of Brigadier.