MCCommandDispatcher
Link to mccommanddispatcher
Импорт класса
Link to импорт-класса
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;
Утилиты
Link to утилиты
Тип результата | Является неявным |
---|---|
Тип результата string | Является неявным true |
Методы
Link to методы
Name: equals
Return Type: boolean
ZenScript CopyMCCommandDispatcher.equals(o as Object) as boolean
Параметр | Тип | Описание |
---|---|---|
Параметр o | Тип Object | Описание No Description Provided |
Name: execute
Return Type: int
ZenScript CopyMCCommandDispatcher.execute(parse as MCParseResults) as int
Параметр | Тип | Описание |
---|---|---|
Параметр parse | Тип Результаты MCParse'а | Описание No Description Provided |
Name: execute
Return Type: int
ZenScript CopyMCCommandDispatcher.execute(input as string, source as MCCommandSource) as int
Параметр | Тип | Описание |
---|---|---|
Параметр input | Тип string | Описание No Description Provided |
Параметр источник | Тип Источник MCCommandSource | Описание No Description Provided |
Name: findAmbiguities
Return Type: void
ZenScript CopyMCCommandDispatcher.findAmbiguities(consumer as MCAmbiguityConsumer) as void
Параметр | Тип | Описание |
---|---|---|
Параметр потребитель | Тип MCAmbiguityConsumer | Описание No Description Provided |
Name: findNode
Return Type: MCCommandNode
ZenScript CopyMCCommandDispatcher.findNode(path as Collection<string>) as MCCommandNode
Параметр | Тип | Описание |
---|---|---|
Параметр path | Тип Collection<string> | Описание No Description Provided |
Name: getAllUsage
Return Type: string[]
ZenScript CopyMCCommandDispatcher.getAllUsage(node as MCCommandNode, source as MCCommandSource, restricted as boolean) as string[]
Параметр | Тип | Описание |
---|---|---|
Параметр узел | Тип MCCommandNode | Описание No Description Provided |
Параметр источник | Тип Источник MCCommandSource | Описание No Description Provided |
Параметр restricted | Тип boolean | Описание No Description Provided |
Name: getCompletionSuggestions
Return Type: MCSuggestions
ZenScript CopyMCCommandDispatcher.getCompletionSuggestions(parse as MCParseResults) as MCSuggestions
Параметр | Тип | Описание |
---|---|---|
Параметр parse | Тип Результаты MCParse'а | Описание No Description Provided |
Name: getCompletionSuggestions
Return Type: MCSuggestions
ZenScript CopyMCCommandDispatcher.getCompletionSuggestions(parse as MCParseResults, cursor as int) as MCSuggestions
Параметр | Тип | Описание |
---|---|---|
Параметр parse | Тип Результаты MCParse'а | Описание No Description Provided |
Параметр cursor | Тип int | Описание No Description Provided |
Name: getPath
Return Type: Collection<string>
ZenScript CopyMCCommandDispatcher.getPath(target as MCCommandNode) as Collection<string>
Параметр | Тип | Описание |
---|---|---|
Параметр target | Тип MCCommandNode | Описание 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]
Параметр | Тип | Описание |
---|---|---|
Параметр узел | Тип MCCommandNode | Описание No Description Provided |
Параметр источник | Тип Источник MCCommandSource | Описание 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
Параметр | Тип | Описание |
---|---|---|
Параметр command | Тип string | Описание No Description Provided |
Параметр источник | Тип Источник MCCommandSource | Описание No Description Provided |
Name: register
Return Type: MCLiteralCommandNode
ZenScript CopyMCCommandDispatcher.register(command as MCLiteralArgumentBuilder) as MCLiteralCommandNode
Параметр | Тип | Описание |
---|---|---|
Параметр command | Тип MCLiteralArgumentBuilder | Описание No Description Provided |
Name: setConsumer
Return Type: void
ZenScript CopyMCCommandDispatcher.setConsumer(consumer as MCResultConsumer) as void
Параметр | Тип | Описание |
---|---|---|
Параметр потребитель | Тип MCResultConsumer | Описание 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