MCCommandContext

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

Casters

Result typeIs Implicit
Result type
string
Is Implicit
true

Methods

Return Type: MCCommandContext

script.zs
MCCommandContext.copyFor(source as MCCommandSource) as MCCommandContext
ParameterTypeDescription
Parameter
source
Type
MCCommandSource
Description
No Description Provided

Return Type: boolean

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

Return Type: string

script.zs
MCCommandContext.getArgument(name as string) as string
ParameterTypeDescription
Parameter
name
Type
string
Description
No Description Provided

Return Type: MCCommandContext

script.zs
// MCCommandContext.getChild() as MCCommandContext
myMCCommandContext.getChild();

Return Type: MCCommand

script.zs
// MCCommandContext.getCommand() as MCCommand
myMCCommandContext.getCommand();

Return Type: string

script.zs
// MCCommandContext.getInput() as string
myMCCommandContext.getInput();

Return Type: MCCommandContext

script.zs
// MCCommandContext.getLastChild() as MCCommandContext
myMCCommandContext.getLastChild();

Return Type: stdlib.List<MCParsedCommandNode>

script.zs
// MCCommandContext.getNodes() as stdlib.List<MCParsedCommandNode>
myMCCommandContext.getNodes();

Return Type: MCStringRange

script.zs
// MCCommandContext.getRange() as MCStringRange
myMCCommandContext.getRange();

Return Type: MCRedirectModifier

script.zs
// MCCommandContext.getRedirectModifier() as MCRedirectModifier
myMCCommandContext.getRedirectModifier();

Return Type: MCCommandNode

script.zs
// MCCommandContext.getRootNode() as MCCommandNode
myMCCommandContext.getRootNode();

Return Type: MCCommandSource

script.zs
// MCCommandContext.getSource() as MCCommandSource
myMCCommandContext.getSource();

Return Type: boolean

script.zs
// MCCommandContext.hasNodes() as boolean
myMCCommandContext.hasNodes();

Return Type: int

script.zs
// MCCommandContext.hashCode() as int
myMCCommandContext.hashCode();

Return Type: boolean

script.zs
// MCCommandContext.isForked() as boolean
myMCCommandContext.isForked();

Return Type: string

script.zs
// MCCommandContext.toString() as string
myMCCommandContext.toString();

Operators

script.zs
myMCCommandContext == o as Object