MCCommandContextBuilder

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

Casters

Result typeIs Implicit
Result type
string
Is Implicit
true

Methods

Return Type: MCCommandContext

script.zs
MCCommandContextBuilder.build(input as string) as MCCommandContext
ParameterTypeDescription
Parameter
input
Type
string
Description
No Description Provided

Return Type: MCCommandContextBuilder

script.zs
// MCCommandContextBuilder.copy() as MCCommandContextBuilder
myMCCommandContextBuilder.copy();

Return Type: boolean

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

Return Type: MCSuggestionContext

script.zs
MCCommandContextBuilder.findSuggestionContext(cursor as int) as MCSuggestionContext
ParameterTypeDescription
Parameter
cursor
Type
int
Description
No Description Provided

Return Type: MCParsedArgument[string]

script.zs
// MCCommandContextBuilder.getArguments() as MCParsedArgument[string]
myMCCommandContextBuilder.getArguments();

Return Type: MCCommandContextBuilder

script.zs
// MCCommandContextBuilder.getChild() as MCCommandContextBuilder
myMCCommandContextBuilder.getChild();

Return Type: MCCommand

script.zs
// MCCommandContextBuilder.getCommand() as MCCommand
myMCCommandContextBuilder.getCommand();

Return Type: MCCommandDispatcher

script.zs
// MCCommandContextBuilder.getDispatcher() as MCCommandDispatcher
myMCCommandContextBuilder.getDispatcher();

Return Type: MCCommandContextBuilder

script.zs
// MCCommandContextBuilder.getLastChild() as MCCommandContextBuilder
myMCCommandContextBuilder.getLastChild();

Return Type: stdlib.List<MCParsedCommandNode>

script.zs
// MCCommandContextBuilder.getNodes() as stdlib.List<MCParsedCommandNode>
myMCCommandContextBuilder.getNodes();

Return Type: MCStringRange

script.zs
// MCCommandContextBuilder.getRange() as MCStringRange
myMCCommandContextBuilder.getRange();

Return Type: MCCommandNode

script.zs
// MCCommandContextBuilder.getRootNode() as MCCommandNode
myMCCommandContextBuilder.getRootNode();

Return Type: MCCommandSource

script.zs
// MCCommandContextBuilder.getSource() as MCCommandSource
myMCCommandContextBuilder.getSource();

Return Type: int

script.zs
// MCCommandContextBuilder.hashCode() as int
myMCCommandContextBuilder.hashCode();

Return Type: string

script.zs
// MCCommandContextBuilder.toString() as string
myMCCommandContextBuilder.toString();

Return Type: MCCommandContextBuilder

script.zs
MCCommandContextBuilder.withArgument(name as string, argument as MCParsedArgument) as MCCommandContextBuilder
ParameterTypeDescription
Parameter
name
Type
string
Description
No Description Provided
Parameter
argument
Type
MCParsedArgument
Description
No Description Provided

Return Type: MCCommandContextBuilder

script.zs
MCCommandContextBuilder.withChild(child as MCCommandContextBuilder) as MCCommandContextBuilder
ParameterTypeDescription
Parameter
child
Type
MCCommandContextBuilder
Description
No Description Provided

Return Type: MCCommandContextBuilder

script.zs
MCCommandContextBuilder.withCommand(command as MCCommand) as MCCommandContextBuilder
ParameterTypeDescription
Parameter
command
Type
MCCommand
Description
No Description Provided

Return Type: MCCommandContextBuilder

script.zs
MCCommandContextBuilder.withNode(node as MCCommandNode, range as MCStringRange) as MCCommandContextBuilder
ParameterTypeDescription
Parameter
node
Type
MCCommandNode
Description
No Description Provided
Parameter
range
Type
MCStringRange
Description
No Description Provided

Return Type: MCCommandContextBuilder

script.zs
MCCommandContextBuilder.withSource(source as MCCommandSource) as MCCommandContextBuilder
ParameterTypeDescription
Parameter
source
Type
MCCommandSource
Description
No Description Provided

Operators

script.zs
myMCCommandContextBuilder == o as Object