MCArgumentBuilder

This class was added by a mod with mod-id crafttweaker. So you need to have this mod installed if you want to use this feature.

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.

crafttweaker.api.commands.custom.MCArgumentBuilder

Methods

build

Return type: crafttweaker.api.commands.custom.MCCommandNode

myMCArgumentBuilder.build();

equals

Return type: boolean

myMCArgumentBuilder.equals(o as Object);
ParameterTypeDescription
oObjectNo description provided

executes

Return type: crafttweaker.api.commands.custom.MCArgumentBuilder

myMCArgumentBuilder.executes(command as crafttweaker.api.commands.custom.MCCommand);
ParameterTypeDescription
commandcrafttweaker.api.commands.custom.MCCommandNo description provided

fork

Return type: crafttweaker.api.commands.custom.MCArgumentBuilder

myMCArgumentBuilder.fork(target as crafttweaker.api.commands.custom.MCCommandNode, modifier as crafttweaker.api.commands.custom.MCRedirectModifier);
ParameterTypeDescription
targetcrafttweaker.api.commands.custom.MCCommandNodeNo description provided
modifiercrafttweaker.api.commands.custom.MCRedirectModifierNo description provided

forward

Return type: crafttweaker.api.commands.custom.MCArgumentBuilder

myMCArgumentBuilder.forward(target as crafttweaker.api.commands.custom.MCCommandNode, modifier as crafttweaker.api.commands.custom.MCRedirectModifier, fork as boolean);
ParameterTypeDescription
targetcrafttweaker.api.commands.custom.MCCommandNodeNo description provided
modifiercrafttweaker.api.commands.custom.MCRedirectModifierNo description provided
forkbooleanNo description provided

getArguments

Return type: Collection<crafttweaker.api.commands.custom.MCCommandNode>

myMCArgumentBuilder.getArguments();

getCommand

Return type: crafttweaker.api.commands.custom.MCCommand

myMCArgumentBuilder.getCommand();

getRedirect

Return type: crafttweaker.api.commands.custom.MCCommandNode

myMCArgumentBuilder.getRedirect();

getRedirectModifier

Return type: crafttweaker.api.commands.custom.MCRedirectModifier

myMCArgumentBuilder.getRedirectModifier();

getRequirement

Return type: function.Predicate<crafttweaker.api.commands.custom.MCCommandSource>

myMCArgumentBuilder.getRequirement();

hashCode

Return type: int

myMCArgumentBuilder.hashCode();

isFork

Return type: boolean

myMCArgumentBuilder.isFork();

redirect

Return type: crafttweaker.api.commands.custom.MCArgumentBuilder

myMCArgumentBuilder.redirect(target as crafttweaker.api.commands.custom.MCCommandNode);
ParameterTypeDescription
targetcrafttweaker.api.commands.custom.MCCommandNodeNo description provided

Return type: crafttweaker.api.commands.custom.MCArgumentBuilder

myMCArgumentBuilder.redirect(target as crafttweaker.api.commands.custom.MCCommandNode, modifier as crafttweaker.api.commands.custom.MCSingleRedirectModifier);
ParameterTypeDescription
targetcrafttweaker.api.commands.custom.MCCommandNodeNo description provided
modifiercrafttweaker.api.commands.custom.MCSingleRedirectModifierNo description provided

requires

Return type: crafttweaker.api.commands.custom.MCArgumentBuilder

myMCArgumentBuilder.requires(requirement as function.Predicate<crafttweaker.api.commands.custom.MCCommandSource>);
ParameterTypeDescription
requirementfunction.Predicate<crafttweaker.api.commands.custom.MCCommandSource>No description provided

then

Return type: crafttweaker.api.commands.custom.MCArgumentBuilder

myMCArgumentBuilder.then(argument as crafttweaker.api.commands.custom.MCArgumentBuilder);
ParameterTypeDescription
argumentcrafttweaker.api.commands.custom.MCArgumentBuilderNo description provided

Return type: crafttweaker.api.commands.custom.MCArgumentBuilder

myMCArgumentBuilder.then(argument as crafttweaker.api.commands.custom.MCCommandNode);
ParameterTypeDescription
argumentcrafttweaker.api.commands.custom.MCCommandNodeNo description provided

toString

Return type: String

myMCArgumentBuilder.toString();

Operators

EQUALS

myMCArgumentBuilder == o as Object
ParameterTypeDescription
oObjectNo description provided

Casters

Result typeIs Implicit
Stringtrue