MCArgumentCommandNode

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

Extending MCCommandNode

MCArgumentCommandNode extends MCCommandNode. That means all methods available in MCCommandNode are also available in MCArgumentCommandNode

Casters

Result typeIs Implicit
Result type
string
Is Implicit
true

Methods

Return Type: void

script.zs
MCArgumentCommandNode.addChild(node as MCCommandNode) as void
ParameterTypeDescription
Parameter
node
Type
MCCommandNode
Description
No Description Provided

Return Type: boolean

script.zs
MCArgumentCommandNode.canUse(source as MCCommandSource) as boolean
ParameterTypeDescription
Parameter
source
Type
MCCommandSource
Description
No Description Provided

Return Type: MCRequiredArgumentBuilder

script.zs
// MCArgumentCommandNode.createBuilder() as MCRequiredArgumentBuilder
myMCArgumentCommandNode.createBuilder();

Return Type: boolean

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

Return Type: void

script.zs
MCArgumentCommandNode.findAmbiguities(consumer as MCAmbiguityConsumer) as void
ParameterTypeDescription
Parameter
consumer
Type
MCAmbiguityConsumer
Description
No Description Provided

Return Type: MCCommandNode

script.zs
MCArgumentCommandNode.getChild(name as string) as MCCommandNode
ParameterTypeDescription
Parameter
name
Type
string
Description
No Description Provided

Return Type: Collection<MCCommandNode>

script.zs
// MCArgumentCommandNode.getChildren() as Collection<MCCommandNode>
myMCArgumentCommandNode.getChildren();

Return Type: MCCommand

script.zs
// MCArgumentCommandNode.getCommand() as MCCommand
myMCArgumentCommandNode.getCommand();

Return Type: MCSuggestionProvider

script.zs
// MCArgumentCommandNode.getCustomSuggestions() as MCSuggestionProvider
myMCArgumentCommandNode.getCustomSuggestions();

Return Type: Collection<string>

script.zs
// MCArgumentCommandNode.getExamples() as Collection<string>
myMCArgumentCommandNode.getExamples();

Return Type: string

script.zs
// MCArgumentCommandNode.getName() as string
myMCArgumentCommandNode.getName();

Return Type: MCCommandNode

script.zs
// MCArgumentCommandNode.getRedirect() as MCCommandNode
myMCArgumentCommandNode.getRedirect();

Return Type: MCRedirectModifier

script.zs
// MCArgumentCommandNode.getRedirectModifier() as MCRedirectModifier
myMCArgumentCommandNode.getRedirectModifier();

Return Type: Collection<MCCommandNode>

script.zs
MCArgumentCommandNode.getRelevantNodes(input as string) as Collection<MCCommandNode>
ParameterTypeDescription
Parameter
input
Type
string
Description
No Description Provided

Return Type: Predicate<MCCommandSource>

script.zs
// MCArgumentCommandNode.getRequirement() as Predicate<MCCommandSource>
myMCArgumentCommandNode.getRequirement();

Return Type: string

script.zs
// MCArgumentCommandNode.getUsageText() as string
myMCArgumentCommandNode.getUsageText();

Return Type: int

script.zs
// MCArgumentCommandNode.hashCode() as int
myMCArgumentCommandNode.hashCode();

Return Type: boolean

script.zs
// MCArgumentCommandNode.isFork() as boolean
myMCArgumentCommandNode.isFork();

Return Type: MCSuggestions

script.zs
MCArgumentCommandNode.listSuggestions(context as MCCommandContext, builder as MCSuggestionsBuilder) as MCSuggestions
ParameterTypeDescription
Parameter
context
Type
MCCommandContext
Description
No Description Provided
Parameter
builder
Type
MCSuggestionsBuilder
Description
No Description Provided

Return Type: void

script.zs
MCArgumentCommandNode.parse(input as string, contextBuilder as MCCommandContextBuilder) as void
ParameterTypeDescription
Parameter
input
Type
string
Description
No Description Provided
Parameter
contextBuilder
Type
MCCommandContextBuilder
Description
No Description Provided

Return Type: string

script.zs
// MCArgumentCommandNode.toString() as string
myMCArgumentCommandNode.toString();

Operators

script.zs
myMCArgumentCommandNode < o as MCCommandNode
script.zs
myMCArgumentCommandNode == o as Object