MCCommandContextBuilder
Link to mccommandcontextbuilder
导入类
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.MCCommandContextBuilder;
Casters
Link to casters
结果类型 | 是否隐藏 |
---|---|
结果类型 string | 是否隐藏 true |
使用方式
Link to 使用方式
Name: build
Return Type: MCCommandContext
ZenScript CopyMCCommandContextBuilder.build(input as string) as MCCommandContext
参数 | 类型 | 描述 |
---|---|---|
参数 input(输入) | 类型 string | 描述 No Description Provided |
Name: copy
Return Type: MCCommandContextBuilder
ZenScript Copy// MCCommandContextBuilder.copy() as MCCommandContextBuilder
myMCCommandContextBuilder.copy();
Name: equals
Return Type: boolean
ZenScript CopyMCCommandContextBuilder.equals(o as Object) as boolean
参数 | 类型 | 描述 |
---|---|---|
参数 o | 类型 Object | 描述 No Description Provided |
Name: findSuggestionContext
Return Type: MCSuggestionContext
ZenScript CopyMCCommandContextBuilder.findSuggestionContext(cursor as int) as MCSuggestionContext
参数 | 类型 | 描述 |
---|---|---|
参数 cursor | 类型 int | 描述 No Description Provided |
Name: getArguments
Return Type: MCParsedArgument[string]
ZenScript Copy// MCCommandContextBuilder.getArguments() as MCParsedArgument[string]
myMCCommandContextBuilder.getArguments();
Name: getChild
Return Type: MCCommandContextBuilder
ZenScript Copy// MCCommandContextBuilder.getChild() as MCCommandContextBuilder
myMCCommandContextBuilder.getChild();
Name: getCommand
Return Type: MCCommand
ZenScript Copy// MCCommandContextBuilder.getCommand() as MCCommand
myMCCommandContextBuilder.getCommand();
Name: getDispatcher
Return Type: MCCommandDispatcher
ZenScript Copy// MCCommandContextBuilder.getDispatcher() as MCCommandDispatcher
myMCCommandContextBuilder.getDispatcher();
Name: getLastChild
Return Type: MCCommandContextBuilder
ZenScript Copy// MCCommandContextBuilder.getLastChild() as MCCommandContextBuilder
myMCCommandContextBuilder.getLastChild();
Name: getNodes
Return Type: stdlib.List<MCParsedCommandNode>
ZenScript Copy// MCCommandContextBuilder.getNodes() as stdlib.List<MCParsedCommandNode>
myMCCommandContextBuilder.getNodes();
Name: getRange
Return Type: MCStringRange
ZenScript Copy// MCCommandContextBuilder.getRange() as MCStringRange
myMCCommandContextBuilder.getRange();
Name: getRootNode
Return Type: MCCommandNode
ZenScript Copy// MCCommandContextBuilder.getRootNode() as MCCommandNode
myMCCommandContextBuilder.getRootNode();
Name: getSource
Return Type: MCCommandSource
ZenScript Copy// MCCommandContextBuilder.getSource() as MCCommandSource
myMCCommandContextBuilder.getSource();
Name: hashCode
Return Type: int
ZenScript Copy// MCCommandContextBuilder.hashCode() as int
myMCCommandContextBuilder.hashCode();
Name: toString
Return Type: string
ZenScript Copy// MCCommandContextBuilder.toString() as string
myMCCommandContextBuilder.toString();
Name: withArgument
Return Type: MCCommandContextBuilder
ZenScript CopyMCCommandContextBuilder.withArgument(name as string, argument as MCParsedArgument) as MCCommandContextBuilder
参数 | 类型 | 描述 |
---|---|---|
参数 name(名称) | 类型 string | 描述 No Description Provided |
参数 参数 | 类型 MCParsedArgument | 描述 No Description Provided |
Name: withChild
Return Type: MCCommandContextBuilder
ZenScript CopyMCCommandContextBuilder.withChild(child as MCCommandContextBuilder) as MCCommandContextBuilder
参数 | 类型 | 描述 |
---|---|---|
参数 子节点 | 类型 MCCommandContextBuilder | 描述 No Description Provided |
Name: withCommand
Return Type: MCCommandContextBuilder
ZenScript CopyMCCommandContextBuilder.withCommand(command as MCCommand) as MCCommandContextBuilder
参数 | 类型 | 描述 |
---|---|---|
参数 command | 类型 MC命令 | 描述 No Description Provided |
Name: withNode
Return Type: MCCommandContextBuilder
ZenScript CopyMCCommandContextBuilder.withNode(node as MCCommandNode, range as MCStringRange) as MCCommandContextBuilder
参数 | 类型 | 描述 |
---|---|---|
参数 节点 | 类型 MCCommand节点 | 描述 No Description Provided |
参数 range | 类型 MCStringRange | 描述 No Description Provided |
Name: withSource
Return Type: MCCommandContextBuilder
ZenScript CopyMCCommandContextBuilder.withSource(source as MCCommandSource) as MCCommandContextBuilder
参数 | 类型 | 描述 |
---|---|---|
参数 来源 | 类型 MC命令源 | 描述 No Description Provided |
运算符
Link to 运算符
Name: EQUALS
ZenScriptCopymyMCCommandContextBuilder == o 为对象