MCCommandDispatcher
Link to mccommanddispatcher
Diese Klasse importieren
Link to diese-klasse-importieren
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 Copyimport crafttweaker.api.commands.custom.MCCommandDispatcher;
Casters
Link to casters
Result type | Is Implicit |
---|---|
Result type string | Is Implicit true |
Methoden
Link to methoden
Name: equals
Return Type: boolean
ZenScript CopyMCCommandDispatcher.equals(o as Object) as boolean
Parameter | Type | Beschreibung |
---|---|---|
Parameter o | Type Object | Beschreibung No Description Provided |
Name: execute
Return Type: int
ZenScript CopyMCCommandDispatcher.execute(parse as MCParseResults) as int
Parameter | Type | Beschreibung |
---|---|---|
Parameter parse | Type MCParseResults | Beschreibung No Description Provided |
Name: execute
Return Type: int
ZenScript CopyMCCommandDispatcher.execute(input as string, source as MCCommandSource) as int
Parameter | Type | Beschreibung |
---|---|---|
Parameter input | Type string | Beschreibung No Description Provided |
Parameter quell | Type MCCommandSource | Beschreibung No Description Provided |
Name: findAmbiguities
Return Type: void
ZenScript CopyMCCommandDispatcher.findAmbiguities(consumer as MCAmbiguityConsumer) as void
Parameter | Type | Beschreibung |
---|---|---|
Parameter konsumenten | Type MCAmbiguityConsumer | Beschreibung No Description Provided |
Name: findNode
Return Type: MCCommandNode
ZenScript CopyMCCommandDispatcher.findNode(path as Collection<string>) as MCCommandNode
Parameter | Type | Beschreibung |
---|---|---|
Parameter path | Type Collection<string> | Beschreibung No Description Provided |
Name: getAllUsage
Return Type: string[]
ZenScript CopyMCCommandDispatcher.getAllUsage(node as MCCommandNode, source as MCCommandSource, restricted as boolean) as string[]
Parameter | Type | Beschreibung |
---|---|---|
Parameter knoten | Type MCCommandNode | Beschreibung No Description Provided |
Parameter quell | Type MCCommandSource | Beschreibung No Description Provided |
Parameter restricted | Type boolean | Beschreibung No Description Provided |
Name: getCompletionSuggestions
Return Type: MCSuggestions
ZenScript CopyMCCommandDispatcher.getCompletionSuggestions(parse as MCParseResults) as MCSuggestions
Parameter | Type | Beschreibung |
---|---|---|
Parameter parse | Type MCParseResults | Beschreibung No Description Provided |
Name: getCompletionSuggestions
Return Type: MCSuggestions
ZenScript CopyMCCommandDispatcher.getCompletionSuggestions(parse as MCParseResults, cursor as int) as MCSuggestions
Parameter | Type | Beschreibung |
---|---|---|
Parameter parse | Type MCParseResults | Beschreibung No Description Provided |
Parameter cursor | Type int | Beschreibung No Description Provided |
Name: getPath
Return Type: Collection<string>
ZenScript CopyMCCommandDispatcher.getPath(target as MCCommandNode) as Collection<string>
Parameter | Type | Beschreibung |
---|---|---|
Parameter target | Type MCCommandNode | Beschreibung No Description Provided |
Name: getRoot
Return Type: MCRootCommandNode
ZenScript Copy// MCCommandDispatcher.getRoot() as MCRootCommandNode
myMCCommandDispatcher.getRoot();
Name: getSmartUsage
Return Type: string[MCCommandNode]
ZenScript CopyMCCommandDispatcher.getSmartUsage(node as MCCommandNode, source as MCCommandSource) as string[MCCommandNode]
Parameter | Type | Beschreibung |
---|---|---|
Parameter knoten | Type MCCommandNode | Beschreibung No Description Provided |
Parameter quell | Type MCCommandSource | Beschreibung No Description Provided |
Name: hashCode
Return Type: int
ZenScript Copy// MCCommandDispatcher.hashCode() as int
myMCCommandDispatcher.hashCode();
Name: parse
Return Type: MCParseResults
ZenScript CopyMCCommandDispatcher.parse(command as string, source as MCCommandSource) as MCParseResults
Parameter | Type | Beschreibung |
---|---|---|
Parameter command | Type string | Beschreibung No Description Provided |
Parameter quell | Type MCCommandSource | Beschreibung No Description Provided |
Name: register
Return Type: MCLiteralCommandNode
ZenScript CopyMCCommandDispatcher.register(command as MCLiteralArgumentBuilder) as MCLiteralCommandNode
Parameter | Type | Beschreibung |
---|---|---|
Parameter command | Type MCLiteralArgumentBuilder | Beschreibung No Description Provided |
Name: setConsumer
Return Type: void
ZenScript CopyMCCommandDispatcher.setConsumer(consumer as MCResultConsumer) as void
Parameter | Type | Beschreibung |
---|---|---|
Parameter konsumenten | Type MCResultConsumer | Beschreibung No Description Provided |
Name: toString
Return Type: string
ZenScript Copy// MCCommandDispatcher.toString() as string
myMCCommandDispatcher.toString();
Operatoren
Link to operatoren
Name: EQUALS
ZenScript CopymyMCCommandDispatcher == o as Object