MCCommandDispatcher
Link to mccommanddispatcher
Importare la Classe
Link to importare-la-classe
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;
Caster
Link to caster
Tipo Risultato | Implicito |
---|---|
Tipo Risultato string | Implicito sì |
Metodi
Link to metodi
Name: equals
Return Type: boolean
ZenScript CopyMCCommandDispatcher.equals(o as Object) as boolean
Parametro | Tipo | Descrizione |
---|---|---|
Parametro o | Tipo Object | Descrizione No Description Provided |
Name: execute
Return Type: int
ZenScript CopyMCCommandDispatcher.execute(parse as MCParseResults) as int
Parametro | Tipo | Descrizione |
---|---|---|
Parametro parse | Tipo MCParseResults | Descrizione No Description Provided |
Name: execute
Return Type: int
ZenScript CopyMCCommandDispatcher.execute(input as string, source as MCCommandSource) as int
Parametro | Tipo | Descrizione |
---|---|---|
Parametro input | Tipo string | Descrizione No Description Provided |
Parametro sorgente | Tipo MCCommandSource | Descrizione No Description Provided |
Name: findAmbiguities
Return Type: void
ZenScript CopyMCCommandDispatcher.findAmbiguities(consumer as MCAmbiguityConsumer) as void
Parametro | Tipo | Descrizione |
---|---|---|
Parametro consumatore | Tipo MCAmbiguityConsumer | Descrizione No Description Provided |
Name: findNode
Return Type: MCCommandNode
ZenScript CopyMCCommandDispatcher.findNode(path as Collection<string>) as MCCommandNode
Parametro | Tipo | Descrizione |
---|---|---|
Parametro path | Tipo Collection<string> | Descrizione No Description Provided |
Name: getAllUsage
Return Type: string[]
ZenScript CopyMCCommandDispatcher.getAllUsage(node as MCCommandNode, source as MCCommandSource, restricted as boolean) as string[]
Parametro | Tipo | Descrizione |
---|---|---|
Parametro nodo | Tipo MCCommandNode | Descrizione No Description Provided |
Parametro sorgente | Tipo MCCommandSource | Descrizione No Description Provided |
Parametro restricted | Tipo boolean | Descrizione No Description Provided |
Name: getCompletionSuggestions
Return Type: MCSuggestions
ZenScript CopyMCCommandDispatcher.getCompletionSuggestions(parse as MCParseResults) as MCSuggestions
Parametro | Tipo | Descrizione |
---|---|---|
Parametro parse | Tipo MCParseResults | Descrizione No Description Provided |
Name: getCompletionSuggestions
Return Type: MCSuggestions
ZenScript CopyMCCommandDispatcher.getCompletionSuggestions(parse as MCParseResults, cursor as int) as MCSuggestions
Parametro | Tipo | Descrizione |
---|---|---|
Parametro parse | Tipo MCParseResults | Descrizione No Description Provided |
Parametro cursor | Tipo int | Descrizione No Description Provided |
Name: getPath
Return Type: Collection<string>
ZenScript CopyMCCommandDispatcher.getPath(target as MCCommandNode) as Collection<string>
Parametro | Tipo | Descrizione |
---|---|---|
Parametro target | Tipo MCCommandNode | Descrizione 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]
Parametro | Tipo | Descrizione |
---|---|---|
Parametro nodo | Tipo MCCommandNode | Descrizione No Description Provided |
Parametro sorgente | Tipo MCCommandSource | Descrizione 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
Parametro | Tipo | Descrizione |
---|---|---|
Parametro command | Tipo string | Descrizione No Description Provided |
Parametro sorgente | Tipo MCCommandSource | Descrizione No Description Provided |
Name: register
Return Type: MCLiteralCommandNode
ZenScript CopyMCCommandDispatcher.register(command as MCLiteralArgumentBuilder) as MCLiteralCommandNode
Parametro | Tipo | Descrizione |
---|---|---|
Parametro command | Tipo MCLiteralArgumentBuilder | Descrizione No Description Provided |
Name: setConsumer
Return Type: void
ZenScript CopyMCCommandDispatcher.setConsumer(consumer as MCResultConsumer) as void
Parametro | Tipo | Descrizione |
---|---|---|
Parametro consumatore | Tipo MCResultConsumer | Descrizione No Description Provided |
Name: toString
Return Type: string
ZenScript Copy// MCCommandDispatcher.toString() as string
myMCCommandDispatcher.toString();
Operators
Link to operators
Name: EQUALS
ZenScript CopymyMCCommandDispatcher == o as Object