MCArgumentBuilder

Importing the class

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.

script.zs
import crafttweaker.api.commands.custom.MCArgumentBuilder;

Casters

Result typeIs Implicit
Result type
string
Is Implicit
true

Methods

Return Type: MCCommandNode

script.zs
// MCArgumentBuilder.build() as MCCommandNode
myMCArgumentBuilder.build();

Return Type: boolean

script.zs
MCArgumentBuilder.equals(o as Object) as boolean
ParameterTypeDescription
Parameter
o
Type
Object
Description
No Description Provided

Return Type: MCArgumentBuilder

script.zs
MCArgumentBuilder.executes(command as MCCommand) as MCArgumentBuilder
ParameterTypeDescription
Parameter
command
Type
MCCommand
Description
No Description Provided

Return Type: MCArgumentBuilder

script.zs
MCArgumentBuilder.fork(target as MCCommandNode, modifier as MCRedirectModifier) as MCArgumentBuilder
ParameterTypeDescription
Parameter
target
Type
MCCommandNode
Description
No Description Provided
Parameter
modifier
Type
MCRedirectModifier
Description
No Description Provided

Return Type: MCArgumentBuilder

script.zs
MCArgumentBuilder.forward(target as MCCommandNode, modifier as MCRedirectModifier, fork as boolean) as MCArgumentBuilder
ParameterTypeDescription
Parameter
target
Type
MCCommandNode
Description
No Description Provided
Parameter
modifier
Type
MCRedirectModifier
Description
No Description Provided
Parameter
fork
Type
boolean
Description
No Description Provided

Return Type: Collection<MCCommandNode>

script.zs
// MCArgumentBuilder.getArguments() as Collection<MCCommandNode>
myMCArgumentBuilder.getArguments();

Return Type: MCCommand

script.zs
// MCArgumentBuilder.getCommand() as MCCommand
myMCArgumentBuilder.getCommand();

Return Type: MCCommandNode

script.zs
// MCArgumentBuilder.getRedirect() as MCCommandNode
myMCArgumentBuilder.getRedirect();

Return Type: MCRedirectModifier

script.zs
// MCArgumentBuilder.getRedirectModifier() as MCRedirectModifier
myMCArgumentBuilder.getRedirectModifier();

Return Type: Predicate<MCCommandSource>

script.zs
// MCArgumentBuilder.getRequirement() as Predicate<MCCommandSource>
myMCArgumentBuilder.getRequirement();

Return Type: int

script.zs
// MCArgumentBuilder.hashCode() as int
myMCArgumentBuilder.hashCode();

Return Type: boolean

script.zs
// MCArgumentBuilder.isFork() as boolean
myMCArgumentBuilder.isFork();

Return Type: MCArgumentBuilder

script.zs
MCArgumentBuilder.redirect(target as MCCommandNode) as MCArgumentBuilder
ParameterTypeDescription
Parameter
target
Type
MCCommandNode
Description
No Description Provided

Return Type: MCArgumentBuilder

script.zs
MCArgumentBuilder.redirect(target as MCCommandNode, modifier as MCSingleRedirectModifier) as MCArgumentBuilder
ParameterTypeDescription
Parameter
target
Type
MCCommandNode
Description
No Description Provided
Parameter
modifier
Type
MCSingleRedirectModifier
Description
No Description Provided

Return Type: MCArgumentBuilder

script.zs
MCArgumentBuilder.requires(requirement as Predicate<MCCommandSource>) as MCArgumentBuilder
ParameterTypeDescription
Parameter
requirement
Type
Predicate<MCCommandSource>
Description
No Description Provided

Return Type: MCArgumentBuilder

script.zs
MCArgumentBuilder.then(argument as MCArgumentBuilder) as MCArgumentBuilder
ParameterTypeDescription
Parameter
argument
Type
MCArgumentBuilder
Description
No Description Provided

Return Type: MCArgumentBuilder

script.zs
MCArgumentBuilder.then(argument as MCCommandNode) as MCArgumentBuilder
ParameterTypeDescription
Parameter
argument
Type
MCCommandNode
Description
No Description Provided

Return Type: string

script.zs
// MCArgumentBuilder.toString() as string
myMCArgumentBuilder.toString();

Operators

script.zs
myMCArgumentBuilder == o as Object