MCCommandDispatcher
Link to mccommanddispatcher
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.MCCommandDispatcher;
Casters
Link to casters
Result type | Is Implicit |
---|---|
Result type string | Is Implicit true |
Methods
Link to methods
Name: equals
Return Type: boolean
ZenScript CopyMCCommandDispatcher.equals(o as Object) as boolean
Parameter | Type | Description |
---|---|---|
Parameter o | Type Object | Description No Description Provided |
Name: execute
Return Type: int
ZenScript CopyMCCommandDispatcher.execute(parse as MCParseResults) as int
Parameter | Type | Description |
---|---|---|
Parameter parse | Type MCParseResults | Description No Description Provided |
Name: execute
Return Type: int
ZenScript CopyMCCommandDispatcher.execute(input as string, source as MCCommandSource) as int
Parameter | Type | Description |
---|---|---|
Parameter input | Type string | Description No Description Provided |
Parameter ソース | Type MCCommandSource | Description No Description Provided |
Name: findAmbiguities
Return Type: void
ZenScript CopyMCCommandDispatcher.findAmbiguities(consumer as MCAmbiguityConsumer) as void
Parameter | Type | Description |
---|---|---|
Parameter コンシューマー | Type MCAmbiguityConsumer | Description No Description Provided |
Name: findNode
Return Type: MCCommandNode
ZenScript CopyMCCommandDispatcher.findNode(path as Collection<string>) as MCCommandNode
Parameter | Type | Description |
---|---|---|
Parameter path | Type Collection<string> | Description No Description Provided |
Name: getAllUsage
Return Type: string[]
ZenScript CopyMCCommandDispatcher.getAllUsage(node as MCCommandNode, source as MCCommandSource, restricted as boolean) as string[]
Parameter | Type | Description |
---|---|---|
Parameter ノード | Type MCCommandNode | Description No Description Provided |
Parameter ソース | Type MCCommandSource | Description No Description Provided |
Parameter restricted | Type boolean型 | Description No Description Provided |
Name: getCompletionSuggestions
Return Type: MCSuggestions
ZenScript CopyMCCommandDispatcher.getCompletionSuggestions(parse as MCParseResults) as MCSuggestions
Parameter | Type | Description |
---|---|---|
Parameter parse | Type MCParseResults | Description No Description Provided |
Name: getCompletionSuggestions
Return Type: MCSuggestions
ZenScript CopyMCCommandDispatcher.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 |
Name: getPath
Return Type: Collection<string>
ZenScript CopyMCCommandDispatcher.getPath(target as MCCommandNode) as Collection<string>
Parameter | Type | Description |
---|---|---|
Parameter target | Type MCCommandNode | Description No Description Provided |
Name: getRoot
Return Type: MCRootCommandNode
ZenScript Copy// MCCommandDispatcher.getRoot() as MCRootCommandNode
myMCCommandDispatcher.getRoot();
Name: getSmartUsage
Return Type: string[MCCommandNode]
ZenScript CopyMCCommandDispatcher.getSmartUsage(node as MCCommandNode, source as MCCommandSource) as string[MCCommandNode]
Parameter | Type | Description |
---|---|---|
Parameter ノード | Type MCCommandNode | Description No Description Provided |
Parameter ソース | Type MCCommandSource | Description No Description Provided |
Name: hashCode
Return Type: int
ZenScript Copy// MCCommandDispatcher.hashCode() as int
myMCCommandDispatcher.hashCode();
Name: parse
Return Type: MCParseResults
ZenScript CopyMCCommandDispatcher.parse(command as string, source as MCCommandSource) as MCParseResults
Parameter | Type | Description |
---|---|---|
Parameter command | Type string | Description No Description Provided |
Parameter ソース | Type MCCommandSource | Description No Description Provided |
Name: register
Return Type: MCLiteralCommandNode
ZenScript CopyMCCommandDispatcher.register(command as MCLiteralArgumentBuilder) as MCLiteralCommandNode
Parameter | Type | Description |
---|---|---|
Parameter command | Type MCLIiteralArgumentBuilder | Description No Description Provided |
Name: setConsumer
Return Type: void
ZenScript CopyMCCommandDispatcher.setConsumer(consumer as MCResultConsumer) as void
Parameter | Type | Description |
---|---|---|
Parameter コンシューマー | Type MCResultConsumer | Description No Description Provided |
Name: toString
Return Type: string
ZenScript Copy// MCCommandDispatcher.toString() as string
myMCCommandDispatcher.toString();
演算子
Link to 演算子
Name: EQUALS
ZenScript CopymyMCCommandDispatcher == o as Object