Répartiteur MC:

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.

ZenScript
Copy
import crafttweaker.api.commands.custom.MCCommandDispatcher;

Casters

Result typeIs Implicit
stringtrue

Methods

equals

Return Type: boolean

ZenScript
Copy
MCCommandDispatcher.equals(o as Object) as boolean
ParameterTypeDescription
oObjectNo Description Provided
execute

Return Type: int

ZenScript
Copy
MCCommandDispatcher.execute(parse as MCParseResults) as int
ParameterTypeDescription
parseAnalyser les résultatsNo Description Provided
execute

Return Type: int

ZenScript
Copy
MCCommandDispatcher.execute(input as string, source as MCCommandSource) as int
ParameterTypeDescription
inputstringNo Description Provided
sourceformat@@0 MCCommandSourceNo Description Provided
findAmbiguities

Return Type: void

ZenScript
Copy
MCCommandDispatcher.findAmbiguities(consumer as MCAmbiguityConsumer) as void
ParameterTypeDescription
consommateurMCAmbiguityConsumerNo Description Provided
findNode

Return Type: MCCommandNode

ZenScript
Copy
MCCommandDispatcher.findNode(path as Collection<string>) as MCCommandNode
ParameterTypeDescription
pathCollection<string>No Description Provided
getAllUsage

Return Type: string[]

ZenScript
Copy
MCCommandDispatcher.getAllUsage(node as MCCommandNode, source as MCCommandSource, restricted as boolean) as string[]
ParameterTypeDescription
NœudNoeud MC:No Description Provided
sourceformat@@0 MCCommandSourceNo Description Provided
restrictedbooleanNo Description Provided
getCompletionSuggestions

Return Type: MCSuggestions

ZenScript
Copy
MCCommandDispatcher.getCompletionSuggestions(parse as MCParseResults) as MCSuggestions
ParameterTypeDescription
parseAnalyser les résultatsNo Description Provided
getCompletionSuggestions

Return Type: MCSuggestions

ZenScript
Copy
MCCommandDispatcher.getCompletionSuggestions(parse as MCParseResults, cursor as int) as MCSuggestions
ParameterTypeDescription
parseAnalyser les résultatsNo Description Provided
cursorintNo Description Provided
getPath

Return Type: Collection<string>

ZenScript
Copy
MCCommandDispatcher.getPath(target as MCCommandNode) as Collection<string>
ParameterTypeDescription
targetNoeud MC:No Description Provided
getRoot

Return Type: MCRootCommandNode

ZenScript
Copy
MCCommandDispatcher.getRoot() as MCRootCommandNode
myMCCommandDispatcher.getRoot();
getSmartUsage

Return Type: string[MCCommandNode]

ZenScript
Copy
MCCommandDispatcher.getSmartUsage(node as MCCommandNode, source as MCCommandSource) as string[MCCommandNode]
ParameterTypeDescription
NœudNoeud MC:No Description Provided
sourceformat@@0 MCCommandSourceNo Description Provided
hashCode

Return Type: int

ZenScript
Copy
MCCommandDispatcher.hashCode() as int
myMCCommandDispatcher.hashCode();
parse

Return Type: MCParseResults

ZenScript
Copy
MCCommandDispatcher.parse(command as string, source as MCCommandSource) as MCParseResults
ParameterTypeDescription
commandstringNo Description Provided
sourceformat@@0 MCCommandSourceNo Description Provided
register

Return Type: MCLiteralCommandNode

ZenScript
Copy
MCCommandDispatcher.register(command as MCLiteralArgumentBuilder) as MCLiteralCommandNode
ParameterTypeDescription
commandformat@@0 MCLiteralArgumentBuilderNo Description Provided
setConsumer

Return Type: void

ZenScript
Copy
MCCommandDispatcher.setConsumer(consumer as MCResultConsumer) as void
ParameterTypeDescription
consommateurRésultat MC: ConsommateurNo Description Provided
toString

Return Type: string

ZenScript
Copy
MCCommandDispatcher.toString() as string
myMCCommandDispatcher.toString();

Operators

EQUALS
ZenScript
Copy
myMCCommandDispatcher == o as Object