Despachador MCCommand
Link to despachador-mccommand
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 Resultados MCParseo | 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 fuente | Type Fuente MCCommandSource | Description No Description Provided |
Name: findAmbiguities
Return Type: void
ZenScript CopyMCCommandDispatcher.findAmbiguities(consumer as MCAmbiguityConsumer) as void
Parameter | Type | Description |
---|---|---|
Parameter consumidor | 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 nodo | Type Nodo MCComando | Description No Description Provided |
Parameter fuente | Type Fuente 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 Resultados MCParseo | 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 Resultados MCParseo | 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 Nodo MCComando | 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 nodo | Type Nodo MCComando | Description No Description Provided |
Parameter fuente | Type Fuente 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 fuente | Type Fuente MCCommandSource | Description No Description Provided |
Name: register
Return Type: MCLiteralCommandNode
ZenScript CopyMCCommandDispatcher.register(command as MCLiteralArgumentBuilder) as MCLiteralCommandNode
Parameter | Type | Description |
---|---|---|
Parameter command | Type Constructor de argumentos MCLiterales | Description No Description Provided |
Name: setConsumer
Return Type: void
ZenScript CopyMCCommandDispatcher.setConsumer(consumer as MCResultConsumer) as void
Parameter | Type | Description |
---|---|---|
Parameter consumidor | Type Consumidor MCResultado | Description No Description Provided |
Name: toString
Return Type: string
ZenScript Copy// MCCommandDispatcher.toString() as string
myMCCommandDispatcher.toString();
Operadores
Link to operadores
Name: EQUALS
ZenScript CopymyMCCommandDispatcher == o as Object