MCCommandDispatcher

This class was added by a mod with mod-id crafttweaker. So you need to have this mod installed if you want to use this feature.

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.

crafttweaker.api.commands.custom.MCCommandDispatch

Methods

equals

Return type: boolean

myMCCommandDispatcher.equals(o as Object);
ParameterTypeDescription
oObjectNo description provided

実行

Return type: int

myMCCommandDispatcher.execute(parse as crafttweaker.api.commands.custom.MCParseResults);
ParameterTypeDescription
parsecrafttweaker.api.commands.custom.MCParseResultsNo description provided

Return type: int

myMCCommandDispatcher.execute(input as String, source as crafttweaker.api.commands.custom.MCCommandSource);
ParameterTypeDescription
inputStringNo description provided
ソースcrafttweaker.api.commands.custom.MCCommandSourceNo description provided

findAmbiguities

myMCCommandDispatcher.findAmbiguities(consumer as crafttweaker.api.commands.custom.MCAmbiguityConsumer);
ParameterTypeDescription
コンシューマーcrafttweaker.api.commands.custom.MCAmbiguityConsumerNo description provided

findNode

戻り値の型: crafttweaker.api.commands.custom.MCCommandNode

myMCCommandDispatcher.findNode(path as Collection<String>);
ParameterTypeDescription
pathコレクション<String>No description provided

getAllUsage

Return type: String[]

myMCCommandDispatcher.getAllUsage(node as crafttweaker.api.commands.custom.MCCommandNode, source as crafttweaker.api.commands.custom.MCCommandSource, restricted as boolean);
ParameterTypeDescription
ノードcrafttweaker.api.commands.custom.MCCommandNodeNo description provided
ソースcrafttweaker.api.commands.custom.MCCommandSourceNo description provided
restrictedboolean型No description provided

getCompletionSuggestions

戻り値の型: crafttweaker.api.commands.custom.MCSuggestions

myMCCommandDispatcher.getCompletionSuggestions(parse as crafttweaker.api.commands.custom.MCParseResults);
ParameterTypeDescription
parsecrafttweaker.api.commands.custom.MCParseResultsNo description provided

戻り値の型: crafttweaker.api.commands.custom.MCSuggestions

myMCCommandDispatcher.getCompletionSuggestions(parse as crafttweaker.api.commands.custom.MCParseResults, cursor as int);
ParameterTypeDescription
parsecrafttweaker.api.commands.custom.MCParseResultsNo description provided
cursorintNo description provided

getPath

戻り値の型: コレクション<String>

myMCCommandDispatcher.getPath(target as crafttweaker.api.commands.custom.MCCommandNode);
ParameterTypeDescription
targetcrafttweaker.api.commands.custom.MCCommandNodeNo description provided

getRoot

Return type: crafttweaker.api.commands.custom.MCRootCommandNode

myMCCommandDispatcher.getRoot();

getSmartUsage

Return type: String[crafttweaker.api.commands.custom.MCCommandNode]

myMCCommandDispatcher.getSmartUsage(node as crafttweaker.api.commands.custom.MCCommandNode, source as crafttweaker.api.commands.custom.MCCommandSource);
ParameterTypeDescription
ノードcrafttweaker.api.commands.custom.MCCommandNodeNo description provided
ソースcrafttweaker.api.commands.custom.MCCommandSourceNo description provided

hashCode

Return type: int

myMCCommandDispatcher.hashCode();

parse

Return type: crafttweaker.api.commands.custom.MCParseResults

myMCCommandDispatcher.parse(command as String, source as crafttweaker.api.commands.custom.MCCommandSource);
ParameterTypeDescription
commandStringNo description provided
ソースcrafttweaker.api.commands.custom.MCCommandSourceNo description provided

登録

戻り値の型: crafttweaker.api.commands.custom.MCLIiteralCommandNode

myMCCommandDispatcher.register(command as crafttweaker.api.commands.custom.MCLiteralArgumentBuilder);
ParameterTypeDescription
commandcrafttweaker.api.commands.custom.MCLIiteralArgumentBuilderNo description provided

セットコンシューマー

myMCCommandDispatcher.setConsumer(consumer as crafttweaker.api.commands.custom.MCResultConsumer);
ParameterTypeDescription
コンシューマーcrafttweaker.api.commands.custom.MCResultConsumerNo description provided

toString

Return type: String

myMCCommandDispatcher.toString();

演算子

EQUALS

myMCCommandDispatcher == o as Object
ParameterTypeDescription
oObjectNo description provided

Casters

Result typeIs Implicit
Stringtrue