MCCommandNode

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

Casters

Result typeIs Implicit
Result type
string
Is Implicit
true

Methods

Return Type: void

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

Return Type: boolean

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

Return Type: MCArgumentBuilder

script.zs
// MCCommandNode.createBuilder() as MCArgumentBuilder
myMCCommandNode.createBuilder();

Return Type: boolean

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

Return Type: void

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

Return Type: MCCommandNode

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

Return Type: Collection<MCCommandNode>

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

Return Type: MCCommand

script.zs
// MCCommandNode.getCommand() as MCCommand
myMCCommandNode.getCommand();

Return Type: Collection<string>

script.zs
// MCCommandNode.getExamples() as Collection<string>
myMCCommandNode.getExamples();

Return Type: string

script.zs
// MCCommandNode.getName() as string
myMCCommandNode.getName();

Return Type: MCCommandNode

script.zs
// MCCommandNode.getRedirect() as MCCommandNode
myMCCommandNode.getRedirect();

Return Type: MCRedirectModifier

script.zs
// MCCommandNode.getRedirectModifier() as MCRedirectModifier
myMCCommandNode.getRedirectModifier();

Return Type: Collection<MCCommandNode>

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

Return Type: Predicate<MCCommandSource>

script.zs
// MCCommandNode.getRequirement() as Predicate<MCCommandSource>
myMCCommandNode.getRequirement();

Return Type: string

script.zs
// MCCommandNode.getUsageText() as string
myMCCommandNode.getUsageText();

Return Type: int

script.zs
// MCCommandNode.hashCode() as int
myMCCommandNode.hashCode();

Return Type: boolean

script.zs
// MCCommandNode.isFork() as boolean
myMCCommandNode.isFork();

Return Type: MCSuggestions

script.zs
MCCommandNode.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
MCCommandNode.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
// MCCommandNode.toString() as string
myMCCommandNode.toString();

Operators

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