MCCommandDispatcher

这个类由mod-id为crafttweaker的模组添加. 因此,如果要使用此功能,则需要安装此mod。

导入相关包

如果遇到任何问题(例如强制转换数组),则可能需要导入软件包,因此,最好的方式就是导入包支持。

craftminstrer.api.commands.custom.MCCommandDispater

方法

equals #等于

Return type: boolean

myMCCommandDispatcher.equals(ao as Object);
参数类型描述
oObjectNo description provided

执行

Return type: int

myMCCommandDispatcher.execute(解析为craftbiner.api.commands.custom.MCParseResults);
参数类型描述
parsecraftminstrer.api.commands.custom.MCParseResultsNo description provided

Return type: int

myMCCommandDispatcher.execute(输入 String, source as craftbiner.api.commands.custom.MCCommandSource);
参数类型描述
input(输入)StringNo description provided
来源craftminstrer.api.commands.custom.MCCommandSourceNo description provided

查找模糊性

myMCCommandDispatcher.findAmbiguities(consumer as crafttweaker.api.commands.custom.MCAmbiguityConsumer);
参数类型描述
消费者craftminstrer.api.commands.custom.MCAmbiguityConsumerNo description provided

查找节点

返回类型: crafttweeper.api.commands.custom.MCCommandNode

myMCCommandDispatcher.findNode(path as Collection<String>);
参数类型描述
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);
参数类型描述
节点craftminstrer.api.commands.custom.MCCommandNodeNo description provided
来源craftminstrer.api.commands.custom.MCCommandSourceNo description provided
restrictedbooleanNo description provided

getCompltion建议

返回类型: craftbiner.api.commands.custom.MCSuggestions

myMCCommandDispatcher.getCompletionSuggestions(parse as crafttweaker.api.commands.custom.MCParseResults);
参数类型描述
parsecraftminstrer.api.commands.custom.MCParseResultsNo description provided

返回类型: craftbiner.api.commands.custom.MCSuggestions

myMCCommandDispatcher.getCompletionSuggestions(parse as crafttweaker.api.commands.custom.MCParseResults, cursor as int);
参数类型描述
parsecraftminstrer.api.commands.custom.MCParseResultsNo description provided
cursorintNo description provided

getPath

返回类型:收藏<String>

myMCCommandDispatcher.getPath(target as crafttweaker.api.commands.custom.MCCommandNode);
参数类型描述
targetcraftminstrer.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);
参数类型描述
节点craftminstrer.api.commands.custom.MCCommandNodeNo description provided
来源craftminstrer.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);
参数类型描述
commandStringNo description provided
来源craftminstrer.api.commands.custom.MCCommandSourceNo description provided

注册

返回类型: craftbiner.api.commands.custom.MCLiteralCommandNode

myMCCommandDispatcher.register(command as crafttweaker.api.commands.custom.MCLiteralArgumentBuilder);
参数类型描述
commandcrafttbower.api.commands.custom.MCLiteralArgumentBuilderNo description provided

用户设置

myMCCommandDispatcher.setConsumer(consumer as crafttweaker.api.commands.custom.MCResultConsumer);
参数类型描述
消费者craftminstrer.api.commands.custom.MCResultConsumerNo description provided

toString

Return type: String

myMCCommandDispatcher.toString();

运算符

EQUALS

myMCCommandDispatcher == o as Object
参数类型描述
oObjectNo description provided

Casters

结果类型是否隐藏
Stringtrue