MCCommandContextBuilder
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.
import crafttweaker.api.commands.custom.MCCommandContextBuilder;
Casters
Result type | Is Implicit |
---|---|
Result type string | Is Implicit true |
Methods
Return Type: MCCommandContext
MCCommandContextBuilder.build(input as string) as MCCommandContext
Parameter | Type | Description |
---|---|---|
Parameter input | Type string | Description No Description Provided |
Return Type: MCCommandContextBuilder
// MCCommandContextBuilder.copy() as MCCommandContextBuilder
myMCCommandContextBuilder.copy();
Return Type: boolean
MCCommandContextBuilder.equals(o as Object) as boolean
Parameter | Type | Description |
---|---|---|
Parameter o | Type Object | Description No Description Provided |
Return Type: MCSuggestionContext
MCCommandContextBuilder.findSuggestionContext(cursor as int) as MCSuggestionContext
Parameter | Type | Description |
---|---|---|
Parameter cursor | Type int | Description No Description Provided |
Return Type: MCParsedArgument[string]
// MCCommandContextBuilder.getArguments() as MCParsedArgument[string]
myMCCommandContextBuilder.getArguments();
Return Type: MCCommandContextBuilder
// MCCommandContextBuilder.getChild() as MCCommandContextBuilder
myMCCommandContextBuilder.getChild();
Return Type: MCCommand
// MCCommandContextBuilder.getCommand() as MCCommand
myMCCommandContextBuilder.getCommand();
Return Type: MCCommandDispatcher
// MCCommandContextBuilder.getDispatcher() as MCCommandDispatcher
myMCCommandContextBuilder.getDispatcher();
Return Type: MCCommandContextBuilder
// MCCommandContextBuilder.getLastChild() as MCCommandContextBuilder
myMCCommandContextBuilder.getLastChild();
Return Type: stdlib.List<MCParsedCommandNode>
// MCCommandContextBuilder.getNodes() as stdlib.List<MCParsedCommandNode>
myMCCommandContextBuilder.getNodes();
Return Type: MCStringRange
// MCCommandContextBuilder.getRange() as MCStringRange
myMCCommandContextBuilder.getRange();
Return Type: MCCommandNode
// MCCommandContextBuilder.getRootNode() as MCCommandNode
myMCCommandContextBuilder.getRootNode();
Return Type: MCCommandSource
// MCCommandContextBuilder.getSource() as MCCommandSource
myMCCommandContextBuilder.getSource();
Return Type: int
// MCCommandContextBuilder.hashCode() as int
myMCCommandContextBuilder.hashCode();
Return Type: string
// MCCommandContextBuilder.toString() as string
myMCCommandContextBuilder.toString();
Return Type: MCCommandContextBuilder
MCCommandContextBuilder.withArgument(name as string, argument as MCParsedArgument) as MCCommandContextBuilder
Parameter | Type | Description |
---|---|---|
Parameter name | Type string | Description No Description Provided |
Parameter argument | Type MCParsedArgument | Description No Description Provided |
Return Type: MCCommandContextBuilder
MCCommandContextBuilder.withChild(child as MCCommandContextBuilder) as MCCommandContextBuilder
Parameter | Type | Description |
---|---|---|
Parameter child | Type MCCommandContextBuilder | Description No Description Provided |
Return Type: MCCommandContextBuilder
MCCommandContextBuilder.withCommand(command as MCCommand) as MCCommandContextBuilder
Parameter | Type | Description |
---|---|---|
Parameter command | Type MCCommand | Description No Description Provided |
Return Type: MCCommandContextBuilder
MCCommandContextBuilder.withNode(node as MCCommandNode, range as MCStringRange) as MCCommandContextBuilder
Parameter | Type | Description |
---|---|---|
Parameter node | Type MCCommandNode | Description No Description Provided |
Parameter range | Type MCStringRange | Description No Description Provided |
Return Type: MCCommandContextBuilder
MCCommandContextBuilder.withSource(source as MCCommandSource) as MCCommandContextBuilder
Parameter | Type | Description |
---|---|---|
Parameter source | Type MCCommandSource | Description No Description Provided |
Operators
myMCCommandContextBuilder == o as Object