MCArgumentCommandNode

导入相关包

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.MCArgumentCommandNode;

Extending MCCommandNode

MCArgumentCommandNode extends MCCommandNode. That means all methods available in MCCommandNode are also available in MCArgumentCommandNode

Casters

结果类型是否隐藏
stringtrue

方法

addChild

Return Type: void

ZenScript
Copy
MCArgumentCommandNode.addChild(node as MCCommandNode) as void
参数类型描述
节点MCCommand节点No Description Provided

canUse

Return Type: boolean

ZenScript
Copy
MCArgumentCommandNode.canUse(source as MCCommandSource) as boolean
参数类型描述
来源MC命令源No Description Provided

createBuilder

Return Type: MCRequiredArgumentBuilder

ZenScript
Copy
MCArgumentCommandNode.createBuilder() as MCRequiredArgumentBuilder
myMCArgumentCommandNode.createBuilder();

equals #等于

Return Type: boolean

ZenScript
Copy
MCArgumentCommandNode.equals(o as Object) as boolean
参数类型描述
oObjectNo Description Provided

查找模糊性

Return Type: void

ZenScript
Copy
MCArgumentCommandNode.findAmbiguities(consumer as MCAmbiguityConsumer) as void
参数类型描述
消费者MCAmbiguityConsumerNo Description Provided

getChild

Return Type: MCCommandNode

ZenScript
Copy
MCArgumentCommandNode.getChild(name as string) as MCCommandNode
参数类型描述
namestringNo Description Provided

getChildren

Return Type: Collection<MCCommandNode>

ZenScript
Copy
MCArgumentCommandNode.getChildren() as Collection<MCCommandNode>
myMCArgumentCommandNode.getChildren();

getCommand

Return Type: MCCommand

ZenScript
Copy
MCArgumentCommandNode.getCommand() as MCCommand
myMCArgumentCommandNode.getCommand();

getCustomSuggestions

Return Type: MCSuggestionProvider

ZenScript
Copy
MCArgumentCommandNode.getCustomSuggestions() as MCSuggestionProvider
myMCArgumentCommandNode.getCustomSuggestions();

getExamples

Return Type: Collection<string>

ZenScript
Copy
MCArgumentCommandNode.getExamples() as Collection<string>
myMCArgumentCommandNode.getExamples();

getName

Return Type: string

ZenScript
Copy
MCArgumentCommandNode.getName() as string
myMCArgumentCommandNode.getName();

获取重定向

Return Type: MCCommandNode

ZenScript
Copy
MCArgumentCommandNode.getRedirect() as MCCommandNode
myMCArgumentCommandNode.getRedirect();

获取重定向修改器

Return Type: MCRedirectModifier

ZenScript
Copy
MCArgumentCommandNode.getRedirectModifier() as MCRedirectModifier
myMCArgumentCommandNode.getRedirectModifier();

getRelevantNodes

Return Type: Collection<MCCommandNode>

ZenScript
Copy
MCArgumentCommandNode.getRelevantNodes(input as string) as Collection<MCCommandNode>
参数类型描述
input(输入)stringNo Description Provided

getRequirement

Return Type: Predicate<MCCommandSource>

ZenScript
Copy
MCArgumentCommandNode.getRequirement() as Predicate<MCCommandSource>
myMCArgumentCommandNode.getRequirement();

getUsageText

Return Type: string

ZenScript
Copy
MCArgumentCommandNode.getUsageText() as string
myMCArgumentCommandNode.getUsageText();

hashCode

Return Type: int

ZenScript
Copy
MCArgumentCommandNode.hashCode() as int
myMCArgumentCommandNode.hashCode();

isFork

Return Type: boolean

ZenScript
Copy
MCArgumentCommandNode.isFork() as boolean
myMCArgumentCommandNode.isFork();

listSuggestions

Return Type: MCSuggestions

ZenScript
Copy
MCArgumentCommandNode.listSuggestions(context as MCCommandContext, builder as MCSuggestionsBuilder) as MCSuggestions
参数类型描述
上下文:MCCommandContextNo Description Provided
生成器MCSuggestionsBuilderNo Description Provided

parse

Return Type: void

ZenScript
Copy
MCArgumentCommandNode.parse(input as string, contextBuilder as MCCommandContextBuilder) as void
参数类型描述
input(输入)stringNo Description Provided
contextBuilderMCCommandContextBuilderNo Description Provided

toString

Return Type: string

ZenScript
Copy
MCArgumentCommandNode.toString() as string
myMCArgumentCommandNode.toString();

运算符

COMPARE

ZenScript
Copy
myMCArgumentCommandNode < o as MCCommandNode

EQUALS

ZenScript
Copy
myMCArgumentCommandNode == o as Object