MCLiteralArgumentBuilder

导入相关包

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.MCLiteralArgumentBuilder;

Extending MCArgumentBuilder

MCLiteralArgumentBuilder extends MCArgumentBuilder. That means all methods available in MCArgumentBuilder are also available in MCLiteralArgumentBuilder

Casters

结果类型是否隐藏
stringtrue

方法

build

Return Type: MCLiteralCommandNode

ZenScript
Copy
// MCLiteralArgumentBuilder.build() as MCLiteralCommandNode

myMCLiteralArgumentBuilder.build();
equals

Return Type: boolean

ZenScript
Copy
MCLiteralArgumentBuilder.equals(o as Object) as boolean
参数类型描述
oObjectNo Description Provided
executes

Return Type: MCLiteralArgumentBuilder

ZenScript
Copy
MCLiteralArgumentBuilder.executes(command as MCCommand) as MCLiteralArgumentBuilder
参数类型描述
commandMC命令No Description Provided
fork

Return Type: MCLiteralArgumentBuilder

ZenScript
Copy
MCLiteralArgumentBuilder.fork(target as MCCommandNode, modifier as MCRedirectModifier) as MCLiteralArgumentBuilder
参数类型描述
targetMCCommand节点No Description Provided
modifierMC重定向修改器No Description Provided
forward

Return Type: MCLiteralArgumentBuilder

ZenScript
Copy
MCLiteralArgumentBuilder.forward(target as MCCommandNode, modifier as MCRedirectModifier, fork as boolean) as MCLiteralArgumentBuilder
参数类型描述
targetMCCommand节点No Description Provided
modifierMC重定向修改器No Description Provided
forkbooleanNo Description Provided
getArguments

Return Type: Collection<MCCommandNode>

ZenScript
Copy
// MCLiteralArgumentBuilder.getArguments() as Collection<MCCommandNode>

myMCLiteralArgumentBuilder.getArguments();
getCommand

Return Type: MCCommand

ZenScript
Copy
// MCLiteralArgumentBuilder.getCommand() as MCCommand

myMCLiteralArgumentBuilder.getCommand();
getLiteral

Return Type: string

ZenScript
Copy
// MCLiteralArgumentBuilder.getLiteral() as string

myMCLiteralArgumentBuilder.getLiteral();
getRedirect

Return Type: MCCommandNode

ZenScript
Copy
// MCLiteralArgumentBuilder.getRedirect() as MCCommandNode

myMCLiteralArgumentBuilder.getRedirect();
getRedirectModifier

Return Type: MCRedirectModifier

ZenScript
Copy
// MCLiteralArgumentBuilder.getRedirectModifier() as MCRedirectModifier

myMCLiteralArgumentBuilder.getRedirectModifier();
getRequirement

Return Type: Predicate<MCCommandSource>

ZenScript
Copy
// MCLiteralArgumentBuilder.getRequirement() as Predicate<MCCommandSource>

myMCLiteralArgumentBuilder.getRequirement();
hashCode

Return Type: int

ZenScript
Copy
// MCLiteralArgumentBuilder.hashCode() as int

myMCLiteralArgumentBuilder.hashCode();
isFork

Return Type: boolean

ZenScript
Copy
// MCLiteralArgumentBuilder.isFork() as boolean

myMCLiteralArgumentBuilder.isFork();
redirect

Return Type: MCLiteralArgumentBuilder

ZenScript
Copy
MCLiteralArgumentBuilder.redirect(target as MCCommandNode) as MCLiteralArgumentBuilder
参数类型描述
targetMCCommand节点No Description Provided
redirect

Return Type: MCLiteralArgumentBuilder

ZenScript
Copy
MCLiteralArgumentBuilder.redirect(target as MCCommandNode, modifier as MCSingleRedirectModifier) as MCLiteralArgumentBuilder
参数类型描述
targetMCCommand节点No Description Provided
modifierMCSingleRirectModifierNo Description Provided
requires

Return Type: MCLiteralArgumentBuilder

ZenScript
Copy
MCLiteralArgumentBuilder.requires(requirement as Predicate<MCCommandSource>) as MCLiteralArgumentBuilder
参数类型描述
要求Predicate<MCCommandSource>No Description Provided
then

Return Type: MCLiteralArgumentBuilder

ZenScript
Copy
MCLiteralArgumentBuilder.then(argument as MCArgumentBuilder) as MCLiteralArgumentBuilder
参数类型描述
参数MCArgumentBuilderNo Description Provided
then

Return Type: MCLiteralArgumentBuilder

ZenScript
Copy
MCLiteralArgumentBuilder.then(argument as MCCommandNode) as MCLiteralArgumentBuilder
参数类型描述
参数MCCommand节点No Description Provided
toString

Return Type: string

ZenScript
Copy
// MCLiteralArgumentBuilder.toString() as string

myMCLiteralArgumentBuilder.toString();

运算符

EQUALS
ZenScript
Copy
myMCLiteralArgumentBuilder == o as Object