MCArgumentBuilder

Импорт класса

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

Утилиты

Тип результатаЯвляется неявным
stringtrue

Methods

build

Return Type: MCCommandNode

ZenScript
Copy
MCArgumentBuilder.build() as MCCommandNode
myMCArgumentBuilder.build();
equals

Return Type: boolean

ZenScript
Copy
MCArgumentBuilder.equals(o as Object) as boolean
ПараметрТипDescription
oObjectNo Description Provided
executes

Return Type: MCArgumentBuilder

ZenScript
Copy
MCArgumentBuilder.executes(command as MCCommand) as MCArgumentBuilder
ПараметрТипDescription
commandMCCommandNo Description Provided
fork

Return Type: MCArgumentBuilder

ZenScript
Copy
MCArgumentBuilder.fork(target as MCCommandNode, modifier as MCRedirectModifier) as MCArgumentBuilder
ПараметрТипDescription
targetMCCommandNodeNo Description Provided
modifierМCRedirectМодификаторNo Description Provided
forward

Return Type: MCArgumentBuilder

ZenScript
Copy
MCArgumentBuilder.forward(target as MCCommandNode, modifier as MCRedirectModifier, fork as boolean) as MCArgumentBuilder
ПараметрТипDescription
targetMCCommandNodeNo Description Provided
modifierМCRedirectМодификаторNo Description Provided
forkbooleanNo Description Provided
getArguments

Return Type: Collection<MCCommandNode>

ZenScript
Copy
MCArgumentBuilder.getArguments() as Collection<MCCommandNode>
myMCArgumentBuilder.getArguments();
getCommand

Return Type: MCCommand

ZenScript
Copy
MCArgumentBuilder.getCommand() as MCCommand
myMCArgumentBuilder.getCommand();
getRedirect

Return Type: MCCommandNode

ZenScript
Copy
MCArgumentBuilder.getRedirect() as MCCommandNode
myMCArgumentBuilder.getRedirect();
getRedirectModifier

Return Type: MCRedirectModifier

ZenScript
Copy
MCArgumentBuilder.getRedirectModifier() as MCRedirectModifier
myMCArgumentBuilder.getRedirectModifier();
getRequirement

Return Type: Predicate<MCCommandSource>

ZenScript
Copy
MCArgumentBuilder.getRequirement() as Predicate<MCCommandSource>
myMCArgumentBuilder.getRequirement();
hashCode

Return Type: int

ZenScript
Copy
MCArgumentBuilder.hashCode() as int
myMCArgumentBuilder.hashCode();
isFork

Return Type: boolean

ZenScript
Copy
MCArgumentBuilder.isFork() as boolean
myMCArgumentBuilder.isFork();
redirect

Return Type: MCArgumentBuilder

ZenScript
Copy
MCArgumentBuilder.redirect(target as MCCommandNode) as MCArgumentBuilder
ПараметрТипDescription
targetMCCommandNodeNo Description Provided
redirect

Return Type: MCArgumentBuilder

ZenScript
Copy
MCArgumentBuilder.redirect(target as MCCommandNode, modifier as MCSingleRedirectModifier) as MCArgumentBuilder
ПараметрТипDescription
targetMCCommandNodeNo Description Provided
modifierМодификатор перенаправления MCSingleRedirectModifierNo Description Provided
requires

Return Type: MCArgumentBuilder

ZenScript
Copy
MCArgumentBuilder.requires(requirement as Predicate<MCCommandSource>) as MCArgumentBuilder
ПараметрТипDescription
требованиеPredicate<MCCommandSource>No Description Provided
then

Return Type: MCArgumentBuilder

ZenScript
Copy
MCArgumentBuilder.then(argument as MCArgumentBuilder) as MCArgumentBuilder
ПараметрТипDescription
аргументMCArgumentBuilderNo Description Provided
then

Return Type: MCArgumentBuilder

ZenScript
Copy
MCArgumentBuilder.then(argument as MCCommandNode) as MCArgumentBuilder
ПараметрТипDescription
аргументMCCommandNodeNo Description Provided
toString

Return Type: string

ZenScript
Copy
MCArgumentBuilder.toString() as string
myMCArgumentBuilder.toString();

Операторы

EQUALS
ZenScript
Copy
myMCArgumentBuilder == o как объект