MCCommandDispatcher

Link to mccommanddispatcher

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

Link to импорт-класса

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;
Тип результатаЯвляется неявным
Тип результата
string
Является неявным
true

Name: equals

Return Type: boolean

ZenScript
Copy
MCCommandDispatcher.equals(o as Object) as boolean
ПараметрТипОписание
Параметр
o
Тип
Object
Описание
No Description Provided

Name: execute

Return Type: int

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

Name: execute

Return Type: int

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

Name: findAmbiguities

Return Type: void

ZenScript
Copy
MCCommandDispatcher.findAmbiguities(consumer as MCAmbiguityConsumer) as void
ПараметрТипОписание
Параметр
потребитель
Тип
MCAmbiguityConsumer
Описание
No Description Provided

Name: findNode

Return Type: MCCommandNode

ZenScript
Copy
MCCommandDispatcher.findNode(path as Collection<string>) as MCCommandNode
ПараметрТипОписание
Параметр
path
Тип
Collection<string>
Описание
No Description Provided

Name: getAllUsage

Return Type: string[]

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

Link to getCompletionSuggestions

Name: getCompletionSuggestions

Return Type: MCSuggestions

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

Link to getCompletionSuggestions

Name: getCompletionSuggestions

Return Type: MCSuggestions

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

Name: getPath

Return Type: Collection<string>

ZenScript
Copy
MCCommandDispatcher.getPath(target as MCCommandNode) as Collection<string>
ПараметрТипОписание
Параметр
target
Тип
MCCommandNode
Описание
No Description Provided

Name: getRoot

Return Type: MCRootCommandNode

ZenScript
Copy
// MCCommandDispatcher.getRoot() as MCRootCommandNode

myMCCommandDispatcher.getRoot();

Name: getSmartUsage

Return Type: string[MCCommandNode]

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

Name: hashCode

Return Type: int

ZenScript
Copy
// MCCommandDispatcher.hashCode() as int

myMCCommandDispatcher.hashCode();

Name: parse

Return Type: MCParseResults

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

Name: register

Return Type: MCLiteralCommandNode

ZenScript
Copy
MCCommandDispatcher.register(command as MCLiteralArgumentBuilder) as MCLiteralCommandNode
ПараметрТипОписание
Параметр
command
Тип
MCLiteralArgumentBuilder
Описание
No Description Provided

Name: setConsumer

Return Type: void

ZenScript
Copy
MCCommandDispatcher.setConsumer(consumer as MCResultConsumer) as void
ПараметрТипОписание
Параметр
потребитель
Тип
MCResultConsumer
Описание
No Description Provided

Name: toString

Return Type: string

ZenScript
Copy
// MCCommandDispatcher.toString() as string

myMCCommandDispatcher.toString();

Операторы

Link to операторы

Name: EQUALS

ZenScript
Copy
myMCCommandDispatcher == o as Object