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.
Type Parameters
the type of Brigadier ArgumentBuilder being wrapped
Properties
Functions
Adds multiple literal aliases to the command that all execute the same block.
Adds an angle argument to the command.
Adds a required argument to the command.
Adds an axes argument (set of X/Y/Z axes) to the command.
Adds a block-in-world predicate argument to the command.
Adds a block position argument to the command.
Adds a block state argument to the command.
Adds a boolean argument to the command.
Adds a column fine position argument (2D decimal coordinates) to the command.
Registers a custom argument type to the DSL.
Adds a double argument to the command.
Adds a double range argument to the command.
Adds an entities argument to the command.
Adds an entity argument to the command.
Adds an entity anchor 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. Equivalent to finePos with centerIntegers = false.
Adds a fine position argument with centerIntegers option to the command.
Adds a float argument to the command.
Adds a greedy string argument to the command.
Adds a height map argument to the command.
Adds a hex color argument to the command.
Adds an integer argument to the command.
Adds an integer range argument to the command.
Adds an item stack predicate argument to the command.
Adds a key argument to the command.
Adds a literal argument to the command.
Adds a long argument to the command.
Adds a named color argument to the command.
Adds an objective criteria 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 player profiles argument to the command.
Adds a players argument to the command.
Registers this command with the given plugin.
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 resource argument to the command.
Adds a resource key argument to the command.
Adds a rotation argument (yaw and pitch) to the command.
Adds a scoreboard display slot argument 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 signed message argument to the command.
Adds a slots argument (multiple inventory slots) to the command.
Adds a string argument to the command.
Adds a style argument to the 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 template mirror argument to the command.
Adds a template rotation argument to the command.
Adds a time argument to the command.
Adds a word argument to the command.
Adds a world argument to the command.