CommandCreator
Creates and manages Minecraft commands using a DSL-style builder pattern.
This class wraps a Brigadier ArgumentBuilder and provides a Kotlin-friendly DSL for defining command structures, including literals, arguments, requirements, and execution logic.
Parameters
the type of Brigadier ArgumentBuilder being wrapped
Functions
Adds multiple literal aliases to the command that all execute the same block.
Adds a required argument to the command.
Adds a block position argument to the command.
Adds a boolean argument to the command.
Registers a custom argument type to the DSL.
Adds a double argument to the command.
Adds an entities argument to the command.
Adds an entity argument to the command.
Sets the execution handler for this command.
Sets the execution handler for this command, limited to console only.
Sets the execution handler for this command, limited to players only.
Adds a fine position argument (with decimals) to the command.
Adds a float argument to the command.
Adds a greedy string argument to the command.
Adds an integer argument to the command.
Adds a literal argument to the command.
Adds a long argument to the command.
Adds a multiple entities argument to the command.
Adds a multiple players argument to the command.
Sets a permission requirement for this command.
Sets a permission requirement combined with an additional condition for this command.
Adds a player argument to the command.
Adds a players argument to the command.
Sets a requirement that the command sender must be an operator.
Sets a requirement that the command sender must be an operator and satisfy an additional condition.
Sets a requirement predicate for this command.
Adds a rotation argument (yaw and pitch) to the command.
Sends an error message to the command sender.
Sends a message to the command sender using Adventure component DSL.
Sends a message to the command sender.
Sends a success message to the command sender.
Adds a single entity argument to the command.
Adds a single player argument to the command.
Adds a string argument to the command.
Adds a sub-command structure defined by a literal.
Adds a subcommand to this command.
Adds static suggestions for this command argument from an Enum.
Adds dynamic suggestions for this command argument.
Adds static suggestions for this command argument.
Adds asynchronous suggestions for this command argument.
Adds a word argument to the command.
Adds a world argument to the command.