MCCommandContext
Link to mccommandcontext
导入类
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.MCCommandContext;
Casters
Link to casters
结果类型 | 是否隐藏 |
---|---|
结果类型 string | 是否隐藏 true |
使用方式
Link to 使用方式
Name: copyFor
Return Type: MCCommandContext
ZenScript CopyMCCommandContext.copyFor(source as MCCommandSource) as MCCommandContext
参数 | 类型 | 描述 |
---|---|---|
参数 来源 | 类型 MC命令源 | 描述 No Description Provided |
Name: equals
Return Type: boolean
ZenScript CopyMCCommandContext.equals(o as Object) as boolean
参数 | 类型 | 描述 |
---|---|---|
参数 o | 类型 Object | 描述 No Description Provided |
Name: getArgument
Return Type: string
ZenScript CopyMCCommandContext.getArgument(name as string) as string
参数 | 类型 | 描述 |
---|---|---|
参数 name(名称) | 类型 string | 描述 No Description Provided |
Name: getChild
Return Type: MCCommandContext
ZenScript Copy// MCCommandContext.getChild() as MCCommandContext
myMCCommandContext.getChild();
Name: getCommand
Return Type: MCCommand
ZenScript Copy// MCCommandContext.getCommand() as MCCommand
myMCCommandContext.getCommand();
Name: getInput
Return Type: string
ZenScript Copy// MCCommandContext.getInput() as string
myMCCommandContext.getInput();
Name: getLastChild
Return Type: MCCommandContext
ZenScript Copy// MCCommandContext.getLastChild() as MCCommandContext
myMCCommandContext.getLastChild();
Name: getNodes
Return Type: stdlib.List<MCParsedCommandNode>
ZenScript Copy// MCCommandContext.getNodes() as stdlib.List<MCParsedCommandNode>
myMCCommandContext.getNodes();
Name: getRange
Return Type: MCStringRange
ZenScript Copy// MCCommandContext.getRange() as MCStringRange
myMCCommandContext.getRange();
Name: getRedirectModifier
Return Type: MCRedirectModifier
ZenScript Copy// MCCommandContext.getRedirectModifier() as MCRedirectModifier
myMCCommandContext.getRedirectModifier();
Name: getRootNode
Return Type: MCCommandNode
ZenScript Copy// MCCommandContext.getRootNode() as MCCommandNode
myMCCommandContext.getRootNode();
Name: getSource
Return Type: MCCommandSource
ZenScript Copy// MCCommandContext.getSource() as MCCommandSource
myMCCommandContext.getSource();
Name: hasNodes
Return Type: boolean
ZenScript Copy// MCCommandContext.hasNodes() as boolean
myMCCommandContext.hasNodes();
Name: hashCode
Return Type: int
ZenScript Copy// MCCommandContext.hashCode() as int
myMCCommandContext.hashCode();
Name: isForked
Return Type: boolean
ZenScript Copy// MCCommandContext.isForked() as boolean
myMCCommandContext.isForked();
Name: toString
Return Type: string
ZenScript Copy// MCCommandContext.toString() as string
myMCCommandContext.toString();
运算符
Link to 运算符
Name: EQUALS
ZenScriptCopymyMCCommandContext == o 为对象