MCCommandDispatcher

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

Casters

Result typeIs Implicit
Result type
string
Is Implicit
true

Methods

Return Type: boolean

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

Return Type: int

script.zs
MCCommandDispatcher.execute(parse as MCParseResults) as int
ParameterTypeDescription
Parameter
parse
Type
MCParseResults
Description
No Description Provided

Return Type: int

script.zs
MCCommandDispatcher.execute(input as string, source as MCCommandSource) as int
ParameterTypeDescription
Parameter
input
Type
string
Description
No Description Provided
Parameter
source
Type
MCCommandSource
Description
No Description Provided

Return Type: void

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

Return Type: MCCommandNode

script.zs
MCCommandDispatcher.findNode(path as Collection<string>) as MCCommandNode
ParameterTypeDescription
Parameter
path
Type
Collection<string>
Description
No Description Provided

Return Type: string[]

script.zs
MCCommandDispatcher.getAllUsage(node as MCCommandNode, source as MCCommandSource, restricted as boolean) as string[]
ParameterTypeDescription
Parameter
node
Type
MCCommandNode
Description
No Description Provided
Parameter
source
Type
MCCommandSource
Description
No Description Provided
Parameter
restricted
Type
boolean
Description
No Description Provided

Return Type: MCSuggestions

script.zs
MCCommandDispatcher.getCompletionSuggestions(parse as MCParseResults) as MCSuggestions
ParameterTypeDescription
Parameter
parse
Type
MCParseResults
Description
No Description Provided

Return Type: MCSuggestions

script.zs
MCCommandDispatcher.getCompletionSuggestions(parse as MCParseResults, cursor as int) as MCSuggestions
ParameterTypeDescription
Parameter
parse
Type
MCParseResults
Description
No Description Provided
Parameter
cursor
Type
int
Description
No Description Provided

Return Type: Collection<string>

script.zs
MCCommandDispatcher.getPath(target as MCCommandNode) as Collection<string>
ParameterTypeDescription
Parameter
target
Type
MCCommandNode
Description
No Description Provided

Return Type: MCRootCommandNode

script.zs
// MCCommandDispatcher.getRoot() as MCRootCommandNode
myMCCommandDispatcher.getRoot();

Return Type: string[MCCommandNode]

script.zs
MCCommandDispatcher.getSmartUsage(node as MCCommandNode, source as MCCommandSource) as string[MCCommandNode]
ParameterTypeDescription
Parameter
node
Type
MCCommandNode
Description
No Description Provided
Parameter
source
Type
MCCommandSource
Description
No Description Provided

Return Type: int

script.zs
// MCCommandDispatcher.hashCode() as int
myMCCommandDispatcher.hashCode();

Return Type: MCParseResults

script.zs
MCCommandDispatcher.parse(command as string, source as MCCommandSource) as MCParseResults
ParameterTypeDescription
Parameter
command
Type
string
Description
No Description Provided
Parameter
source
Type
MCCommandSource
Description
No Description Provided

Return Type: MCLiteralCommandNode

script.zs
MCCommandDispatcher.register(command as MCLiteralArgumentBuilder) as MCLiteralCommandNode
ParameterTypeDescription
Parameter
command
Type
MCLiteralArgumentBuilder
Description
No Description Provided

Return Type: void

script.zs
MCCommandDispatcher.setConsumer(consumer as MCResultConsumer) as void
ParameterTypeDescription
Parameter
consumer
Type
MCResultConsumer
Description
No Description Provided

Return Type: string

script.zs
// MCCommandDispatcher.toString() as string
myMCCommandDispatcher.toString();

Operators

script.zs
myMCCommandDispatcher == o as Object