MCArgumentBuilder
Link to mcargumentbuilder
导入类
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.MCArgumentBuilder;
Casters
Link to casters
结果类型 | 是否隐藏 |
---|---|
结果类型 string | 是否隐藏 true |
使用方式
Link to 使用方式
Name: build
Return Type: MCCommandNode
ZenScript Copy// MCArgumentBuilder.build() as MCCommandNode
myMCArgumentBuilder.build();
Name: equals
Return Type: boolean
ZenScript CopyMCArgumentBuilder.equals(o as Object) as boolean
参数 | 类型 | 描述 |
---|---|---|
参数 o | 类型 Object | 描述 No Description Provided |
Name: executes
Return Type: MCArgumentBuilder
ZenScript CopyMCArgumentBuilder.executes(command as MCCommand) as MCArgumentBuilder
参数 | 类型 | 描述 |
---|---|---|
参数 command | 类型 MC命令 | 描述 No Description Provided |
Name: fork
Return Type: MCArgumentBuilder
ZenScript CopyMCArgumentBuilder.fork(target as MCCommandNode, modifier as MCRedirectModifier) as MCArgumentBuilder
参数 | 类型 | 描述 |
---|---|---|
参数 target | 类型 MCCommand节点 | 描述 No Description Provided |
参数 modifier | 类型 MC重定向修改器 | 描述 No Description Provided |
Name: forward
Return Type: MCArgumentBuilder
ZenScript CopyMCArgumentBuilder.forward(target as MCCommandNode, modifier as MCRedirectModifier, fork as boolean) as MCArgumentBuilder
参数 | 类型 | 描述 |
---|---|---|
参数 target | 类型 MCCommand节点 | 描述 No Description Provided |
参数 modifier | 类型 MC重定向修改器 | 描述 No Description Provided |
参数 fork | 类型 布尔值 | 描述 No Description Provided |
Name: getArguments
Return Type: Collection<MCCommandNode>
ZenScript Copy// MCArgumentBuilder.getArguments() as Collection<MCCommandNode>
myMCArgumentBuilder.getArguments();
Name: getCommand
Return Type: MCCommand
ZenScript Copy// MCArgumentBuilder.getCommand() as MCCommand
myMCArgumentBuilder.getCommand();
Name: getRedirect
Return Type: MCCommandNode
ZenScript Copy// MCArgumentBuilder.getRedirect() as MCCommandNode
myMCArgumentBuilder.getRedirect();
Name: getRedirectModifier
Return Type: MCRedirectModifier
ZenScript Copy// MCArgumentBuilder.getRedirectModifier() as MCRedirectModifier
myMCArgumentBuilder.getRedirectModifier();
Name: getRequirement
Return Type: Predicate<MCCommandSource>
ZenScript Copy// MCArgumentBuilder.getRequirement() as Predicate<MCCommandSource>
myMCArgumentBuilder.getRequirement();
Name: hashCode
Return Type: int
ZenScript Copy// MCArgumentBuilder.hashCode() as int
myMCArgumentBuilder.hashCode();
Name: isFork
Return Type: boolean
ZenScript Copy// MCArgumentBuilder.isFork() as boolean
myMCArgumentBuilder.isFork();
Name: redirect
Return Type: MCArgumentBuilder
ZenScript CopyMCArgumentBuilder.redirect(target as MCCommandNode) as MCArgumentBuilder
参数 | 类型 | 描述 |
---|---|---|
参数 target | 类型 MCCommand节点 | 描述 No Description Provided |
Name: redirect
Return Type: MCArgumentBuilder
ZenScript CopyMCArgumentBuilder.redirect(target as MCCommandNode, modifier as MCSingleRedirectModifier) as MCArgumentBuilder
参数 | 类型 | 描述 |
---|---|---|
参数 target | 类型 MCCommand节点 | 描述 No Description Provided |
参数 modifier | 类型 MCSingleRirectModifier | 描述 No Description Provided |
Name: requires
Return Type: MCArgumentBuilder
ZenScript CopyMCArgumentBuilder.requires(requirement as Predicate<MCCommandSource>) as MCArgumentBuilder
参数 | 类型 | 描述 |
---|---|---|
参数 要求 | 类型 Predicate<MCCommandSource> | 描述 No Description Provided |
Name: then
Return Type: MCArgumentBuilder
ZenScript CopyMCArgumentBuilder.then(argument as MCArgumentBuilder) as MCArgumentBuilder
参数 | 类型 | 描述 |
---|---|---|
参数 参数 | 类型 MCArgumentBuilder | 描述 No Description Provided |
Name: then
Return Type: MCArgumentBuilder
ZenScript CopyMCArgumentBuilder.then(argument as MCCommandNode) as MCArgumentBuilder
参数 | 类型 | 描述 |
---|---|---|
参数 参数 | 类型 MCCommand节点 | 描述 No Description Provided |
Name: toString
Return Type: string
ZenScript Copy// MCArgumentBuilder.toString() as string
myMCArgumentBuilder.toString();
运算符
Link to 运算符
Name: EQUALS
ZenScriptCopymyMCArgumentBuilder == o 为对象