MCCommandDispatcher

Импорт класса

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.

import crafttweaker.api.commands.custom.MCCommandDispatcher;

Утилиты

Тип результатаЯвляется неявным
stringtrue

Methods

equals

Return Type: boolean

MCCommandDispatcher.equals(o as Object) as boolean
ПараметрТипDescription
oObjectNo Description Provided
execute

Return Type: int

MCCommandDispatcher.execute(parse as MCParseResults) as int
ПараметрТипDescription
parseРезультаты MCParse'аNo Description Provided
execute

Return Type: int

MCCommandDispatcher.execute(input as string, source as MCCommandSource) as int
ПараметрТипDescription
inputstringNo Description Provided
источникИсточник MCCommandSourceNo Description Provided
findAmbiguities

Return Type: void

MCCommandDispatcher.findAmbiguities(consumer as MCAmbiguityConsumer) as void
ПараметрТипDescription
потребительMCAmbiguityConsumerNo Description Provided
findNode

Return Type: MCCommandNode

MCCommandDispatcher.findNode(path as Collection<string>) as MCCommandNode
ПараметрТипDescription
pathCollection<string>No Description Provided
getAllUsage

Return Type: string[]

MCCommandDispatcher.getAllUsage(node as MCCommandNode, source as MCCommandSource, restricted as boolean) as string[]
ПараметрТипDescription
узелMCCommandNodeNo Description Provided
источникИсточник MCCommandSourceNo Description Provided
restrictedbooleanNo Description Provided
getCompletionSuggestions

Return Type: MCSuggestions

MCCommandDispatcher.getCompletionSuggestions(parse as MCParseResults) as MCSuggestions
ПараметрТипDescription
parseРезультаты MCParse'аNo Description Provided
getCompletionSuggestions

Return Type: MCSuggestions

MCCommandDispatcher.getCompletionSuggestions(parse as MCParseResults, cursor as int) as MCSuggestions
ПараметрТипDescription
parseРезультаты MCParse'аNo Description Provided
cursorintNo Description Provided
getPath

Return Type: Collection<string>

MCCommandDispatcher.getPath(target as MCCommandNode) as Collection<string>
ПараметрТипDescription
targetMCCommandNodeNo Description Provided
getRoot

Return Type: MCRootCommandNode

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

Return Type: string[MCCommandNode]

MCCommandDispatcher.getSmartUsage(node as MCCommandNode, source as MCCommandSource) as string[MCCommandNode]
ПараметрТипDescription
узелMCCommandNodeNo Description Provided
источникИсточник MCCommandSourceNo Description Provided
hashCode

Return Type: int

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

Return Type: MCParseResults

MCCommandDispatcher.parse(command as string, source as MCCommandSource) as MCParseResults
ПараметрТипDescription
commandstringNo Description Provided
источникИсточник MCCommandSourceNo Description Provided
register

Return Type: MCLiteralCommandNode

MCCommandDispatcher.register(command as MCLiteralArgumentBuilder) as MCLiteralCommandNode
ПараметрТипDescription
commandMCLiteralArgumentBuilderNo Description Provided
setConsumer

Return Type: void

MCCommandDispatcher.setConsumer(consumer as MCResultConsumer) as void
ПараметрТипDescription
потребительMCResultConsumerNo Description Provided
toString

Return Type: string

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

Операторы

EQUALS
myMCCommandDispatcher == o as Object