MCLiteralArgumentBuilder

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

Extending MCArgumentBuilder

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

Casters

Result typeIs Implicit
Result type
string
Is Implicit
true

Methods

Return Type: MCLiteralCommandNode

script.zs
// MCLiteralArgumentBuilder.build() as MCLiteralCommandNode
myMCLiteralArgumentBuilder.build();

Return Type: boolean

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

Return Type: MCLiteralArgumentBuilder

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

Return Type: MCLiteralArgumentBuilder

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

Return Type: MCLiteralArgumentBuilder

script.zs
MCLiteralArgumentBuilder.forward(target as MCCommandNode, modifier as MCRedirectModifier, fork as boolean) as MCLiteralArgumentBuilder
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
// MCLiteralArgumentBuilder.getArguments() as Collection<MCCommandNode>
myMCLiteralArgumentBuilder.getArguments();

Return Type: MCCommand

script.zs
// MCLiteralArgumentBuilder.getCommand() as MCCommand
myMCLiteralArgumentBuilder.getCommand();

Return Type: string

script.zs
// MCLiteralArgumentBuilder.getLiteral() as string
myMCLiteralArgumentBuilder.getLiteral();

Return Type: MCCommandNode

script.zs
// MCLiteralArgumentBuilder.getRedirect() as MCCommandNode
myMCLiteralArgumentBuilder.getRedirect();

Return Type: MCRedirectModifier

script.zs
// MCLiteralArgumentBuilder.getRedirectModifier() as MCRedirectModifier
myMCLiteralArgumentBuilder.getRedirectModifier();

Return Type: Predicate<MCCommandSource>

script.zs
// MCLiteralArgumentBuilder.getRequirement() as Predicate<MCCommandSource>
myMCLiteralArgumentBuilder.getRequirement();

Return Type: int

script.zs
// MCLiteralArgumentBuilder.hashCode() as int
myMCLiteralArgumentBuilder.hashCode();

Return Type: boolean

script.zs
// MCLiteralArgumentBuilder.isFork() as boolean
myMCLiteralArgumentBuilder.isFork();

Return Type: MCLiteralArgumentBuilder

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

Return Type: MCLiteralArgumentBuilder

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

Return Type: MCLiteralArgumentBuilder

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

Return Type: MCLiteralArgumentBuilder

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

Return Type: MCLiteralArgumentBuilder

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

Return Type: string

script.zs
// MCLiteralArgumentBuilder.toString() as string
myMCLiteralArgumentBuilder.toString();

Operators

script.zs
myMCLiteralArgumentBuilder == o as Object