MCCommandDispatcher

Link to mccommanddispatcher

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
Copy
import crafttweaker.api.commands.custom.MCCommandDispatcher;
结果类型是否隐藏
结果类型
string
是否隐藏
true

Name: equals

Return Type: boolean

ZenScript
Copy
MCCommandDispatcher.equals(o as Object) as boolean
参数类型描述
参数
o
类型
Object
描述
No Description Provided

Name: execute

Return Type: int

ZenScript
Copy
MCCommandDispatcher.execute(parse as MCParseResults) as int
参数类型描述
参数
parse
类型
MCParseResults
描述
No Description Provided

Name: execute

Return Type: int

ZenScript
Copy
MCCommandDispatcher.execute(input as string, source as MCCommandSource) as int
参数类型描述
参数
input(输入)
类型
string
描述
No Description Provided
参数
来源
类型
MC命令源
描述
No Description Provided

Name: findAmbiguities

Return Type: void

ZenScript
Copy
MCCommandDispatcher.findAmbiguities(consumer as MCAmbiguityConsumer) as void
参数类型描述
参数
消费者
类型
MCAmbiguityConsumer
描述
No Description Provided

Name: findNode

Return Type: MCCommandNode

ZenScript
Copy
MCCommandDispatcher.findNode(path as Collection<string>) as MCCommandNode
参数类型描述
参数
path
类型
Collection<string>
描述
No Description Provided

Name: getAllUsage

Return Type: string[]

ZenScript
Copy
MCCommandDispatcher.getAllUsage(node as MCCommandNode, source as MCCommandSource, restricted as boolean) as string[]
参数类型描述
参数
节点
类型
MCCommand节点
描述
No Description Provided
参数
来源
类型
MC命令源
描述
No Description Provided
参数
restricted
类型
布尔值
描述
No Description Provided

Link to getCompletionSuggestions

Name: getCompletionSuggestions

Return Type: MCSuggestions

ZenScript
Copy
MCCommandDispatcher.getCompletionSuggestions(parse as MCParseResults) as MCSuggestions
参数类型描述
参数
parse
类型
MCParseResults
描述
No Description Provided

Link to getCompletionSuggestions

Name: getCompletionSuggestions

Return Type: MCSuggestions

ZenScript
Copy
MCCommandDispatcher.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
Copy
MCCommandDispatcher.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
Copy
MCCommandDispatcher.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
Copy
MCCommandDispatcher.parse(command as string, source as MCCommandSource) as MCParseResults
参数类型描述
参数
command
类型
string
描述
No Description Provided
参数
来源
类型
MC命令源
描述
No Description Provided

Name: register

Return Type: MCLiteralCommandNode

ZenScript
Copy
MCCommandDispatcher.register(command as MCLiteralArgumentBuilder) as MCLiteralCommandNode
参数类型描述
参数
command
类型
MCLiteralArgumentBuilder
描述
No Description Provided

Name: setConsumer

Return Type: void

ZenScript
Copy
MCCommandDispatcher.setConsumer(consumer as MCResultConsumer) as void
参数类型描述
参数
消费者
类型
MCResultConsumer
描述
No Description Provided

Name: toString

Return Type: string

ZenScript
Copy
// MCCommandDispatcher.toString() as string

myMCCommandDispatcher.toString();

Name: EQUALS

ZenScript
Copy
myMCCommandDispatcher == o as Object