MCCommand节点

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

导入相关包

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

craftminstrer.api.commands.custom.MCCommandNode

方法

addChild

myMCCommandNode.addChild(node as crafttweaker.api.commands.custom.MCCommandNode);
参数类型描述
节点craftminstrer.api.commands.custom.MCCommandNodeNo description provided

canUse

Return type: boolean

myMCCommandNode.canUse(source as crafttweaker.api.commands.custom.MCCommandSource);
参数类型描述
来源craftminstrer.api.commands.custom.MCCommandSourceNo description provided

createBuilder

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

myMCCommandNode.createBuilder();

equals #等于

Return type: boolean

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

查找模糊性

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

getChild

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

myMCCommandNode.getChild(name as String);
参数类型描述
nameStringNo description provided

getChildren

返回类型:集合<craftminstrer.api.commands.custom.MCCommandNode>

myMCCommandNode.getChildren();

getCommand

返回类型: craftmiliter.api.commands.custom.MCCommand

myMCCommandNode.getCommand();

getExamples

返回类型:收藏<String>

myMCCommandNode.getExamples();

getName

Return type: String

myMCCommandNode.getName();

获取重定向

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

myMCCommandNode.getRedirect();

获取重定向修改器

返回类型: craftmilower.api.commands.custom.MCRedirectModifier

myMCCommandNode.getRedirectModifier();

getRelevantNodes

返回类型:集合<craftminstrer.api.commands.custom.MCCommandNode>

myMCCommandNode.getRelevantNodes(input as String);
参数类型描述
input(输入)StringNo description provided

getRequirement

返回类型:函数。预测<craftminstrer.api.commands.custom.MCCommandSource>

myMCCommandNode.getRequirement();

getUsageText

Return type: String

myMCCommandNode.getUsageText();

hashCode

Return type: int

myMCCommandNode.hashCode();

isFork

Return type: boolean

myMCCommandNode.isFork();

listSuggestions

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

myMCCommandNode.listSuggestions(context as crafttweaker.api.commands.custom.MCCommandContext, builder as crafttweaker.api.commands.custom.MCSuggestionsBuilder);
参数类型描述
上下文:craftminstrer.api.commands.custom.MCCommandContextNo description provided
生成器crafttweeper.api.commands.custom.MCSuggestionsBuilderNo description provided

parse

myMCCommandNode.parse(input as String, contextBuilder as crafttweaker.api.commands.custom.MCCommandContextBuilder);
参数类型描述
input(输入)StringNo description provided
contextBuildercrafttbower.api.commands.custom.MCCommandContextBuilderNo description provided

toString

Return type: String

myMCCommandNode.toString();

运算符

COMPARE

myMCCommandNode compare o as crafttweaker.api.commands.custom.MCCommandNode
参数类型描述
ocraftminstrer.api.commands.custom.MCCommandNodeNo description provided
### EQUALS
myMCCommandNode == o as Object
参数类型描述
oObjectNo description provided

Casters

结果类型是否隐藏
Stringtrue