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;
Casters
Link to casters
结果类型 | 是否隐藏 |
---|---|
结果类型 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 | 类型 MCParseResults | 描述 No Description Provided |
Name: execute
Return Type: int
ZenScript CopyMCCommandDispatcher.execute(input as string, source as MCCommandSource) as int
参数 | 类型 | 描述 |
---|---|---|
参数 input(输入) | 类型 string | 描述 No Description Provided |
参数 来源 | 类型 MC命令源 | 描述 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[]
参数 | 类型 | 描述 |
---|---|---|
参数 节点 | 类型 MCCommand节点 | 描述 No Description Provided |
参数 来源 | 类型 MC命令源 | 描述 No Description Provided |
参数 restricted | 类型 布尔值 | 描述 No Description Provided |
Name: getCompletionSuggestions
Return Type: MCSuggestions
ZenScript CopyMCCommandDispatcher.getCompletionSuggestions(parse as MCParseResults) as MCSuggestions
参数 | 类型 | 描述 |
---|---|---|
参数 parse | 类型 MCParseResults | 描述 No Description Provided |
Name: getCompletionSuggestions
Return Type: MCSuggestions
ZenScript CopyMCCommandDispatcher.getCompletionSuggestions(parse as MCParseResults, cursor as int) as MCSuggestions
参数 | 类型 | 描述 |
---|---|---|
参数 parse | 类型 MCParseResults | 描述 No Description Provided |
参数 cursor | 类型 int | 描述 No Description Provided |
Name: getPath
Return Type: Collection<string>
ZenScript CopyMCCommandDispatcher.getPath(target as MCCommandNode) as Collection<string>
参数 | 类型 | 描述 |
---|---|---|
参数 target | 类型 MCCommand节点 | 描述 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]
参数 | 类型 | 描述 |
---|---|---|
参数 节点 | 类型 MCCommand节点 | 描述 No Description Provided |
参数 来源 | 类型 MC命令源 | 描述 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 |
参数 来源 | 类型 MC命令源 | 描述 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