MCCommandDispatcher
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.MCCommandDispatcher;
Casters
Result type | Is Implicit |
---|---|
Result type string | Is Implicit true |
Methods
Return Type: boolean
MCCommandDispatcher.equals(o as Object) as boolean
Parameter | Type | Description |
---|---|---|
Parameter o | Type Object | Description No Description Provided |
Return Type: int
MCCommandDispatcher.execute(parse as MCParseResults) as int
Parameter | Type | Description |
---|---|---|
Parameter parse | Type MCParseResults | Description No Description Provided |
Return Type: int
MCCommandDispatcher.execute(input as string, source as MCCommandSource) as int
Parameter | Type | Description |
---|---|---|
Parameter input | Type string | Description No Description Provided |
Parameter source | Type MCCommandSource | Description No Description Provided |
Return Type: void
MCCommandDispatcher.findAmbiguities(consumer as MCAmbiguityConsumer) as void
Parameter | Type | Description |
---|---|---|
Parameter consumer | Type MCAmbiguityConsumer | Description No Description Provided |
Return Type: MCCommandNode
MCCommandDispatcher.findNode(path as Collection<string>) as MCCommandNode
Parameter | Type | Description |
---|---|---|
Parameter path | Type Collection<string> | Description No Description Provided |
Return Type: string[]
MCCommandDispatcher.getAllUsage(node as MCCommandNode, source as MCCommandSource, restricted as boolean) as string[]
Parameter | Type | Description |
---|---|---|
Parameter node | Type MCCommandNode | Description No Description Provided |
Parameter source | Type MCCommandSource | Description No Description Provided |
Parameter restricted | Type boolean | Description No Description Provided |
Return Type: MCSuggestions
MCCommandDispatcher.getCompletionSuggestions(parse as MCParseResults) as MCSuggestions
Parameter | Type | Description |
---|---|---|
Parameter parse | Type MCParseResults | Description No Description Provided |
Return Type: MCSuggestions
MCCommandDispatcher.getCompletionSuggestions(parse as MCParseResults, cursor as int) as MCSuggestions
Parameter | Type | Description |
---|---|---|
Parameter parse | Type MCParseResults | Description No Description Provided |
Parameter cursor | Type int | Description No Description Provided |
Return Type: Collection<string>
MCCommandDispatcher.getPath(target as MCCommandNode) as Collection<string>
Parameter | Type | Description |
---|---|---|
Parameter target | Type MCCommandNode | Description No Description Provided |
Return Type: MCRootCommandNode
// MCCommandDispatcher.getRoot() as MCRootCommandNode
myMCCommandDispatcher.getRoot();
Return Type: string[MCCommandNode]
MCCommandDispatcher.getSmartUsage(node as MCCommandNode, source as MCCommandSource) as string[MCCommandNode]
Parameter | Type | Description |
---|---|---|
Parameter node | Type MCCommandNode | Description No Description Provided |
Parameter source | Type MCCommandSource | Description No Description Provided |
Return Type: int
// MCCommandDispatcher.hashCode() as int
myMCCommandDispatcher.hashCode();
Return Type: MCParseResults
MCCommandDispatcher.parse(command as string, source as MCCommandSource) as MCParseResults
Parameter | Type | Description |
---|---|---|
Parameter command | Type string | Description No Description Provided |
Parameter source | Type MCCommandSource | Description No Description Provided |
Return Type: MCLiteralCommandNode
MCCommandDispatcher.register(command as MCLiteralArgumentBuilder) as MCLiteralCommandNode
Parameter | Type | Description |
---|---|---|
Parameter command | Type MCLiteralArgumentBuilder | Description No Description Provided |
Return Type: void
MCCommandDispatcher.setConsumer(consumer as MCResultConsumer) as void
Parameter | Type | Description |
---|---|---|
Parameter consumer | Type MCResultConsumer | Description No Description Provided |
Return Type: string
// MCCommandDispatcher.toString() as string
myMCCommandDispatcher.toString();
Operators
myMCCommandDispatcher == o as Object