CustomCommands
Link to customcommands
Importing the class
Link to importing-the-class
It might be required for you to import the package if you encounter any issues (like casting an Array), so better be safe than sorry and add the import at the very top of the file.
ZenScript Copyimport crafttweaker.api.commands.custom.CustomCommands;
Static Methods
Link to static-methods
Name: argument
Return Type: MCRequiredArgumentBuilder
ZenScript CopyCustomCommands.argument(name as string) as MCRequiredArgumentBuilder
Parameter | Type | Description |
---|---|---|
Parameter name | Type string | Description No Description Provided |
Name: literal
Return Type: MCLiteralArgumentBuilder
ZenScript CopyCustomCommands.literal(name as string) as MCLiteralArgumentBuilder
Parameter | Type | Description |
---|---|---|
Parameter name | Type string | Description No Description Provided |
Name: registerCommand
Return Type: void
ZenScript CopyCustomCommands.registerCommand(builder as MCLiteralArgumentBuilder) as void
Parameter | Type | Description |
---|---|---|
Parameter builder | Type MCLiteralArgumentBuilder | Description No Description Provided |