MCRequireedArgumentBuilder

Link to mcrequireedargumentbuilder

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

Extending MCArgumentBuilder

Link to extending-mcargumentbuilder

MCRequiredArgumentBuilder extends MCArgumentBuilder. That means all methods available in MCArgumentBuilder are also available in MCRequiredArgumentBuilder

结果类型是否隐藏
结果类型
string
是否隐藏
true

Name: build

Return Type: MCArgumentCommandNode

ZenScript
Copy
// MCRequiredArgumentBuilder.build() as MCArgumentCommandNode

myMCRequiredArgumentBuilder.build();

Name: equals

Return Type: boolean

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

Name: executes

Return Type: MCRequiredArgumentBuilder

ZenScript
Copy
MCRequiredArgumentBuilder.executes(command as MCCommand) as MCRequiredArgumentBuilder
参数类型描述
参数
command
类型
MC命令
描述
No Description Provided

Name: fork

Return Type: MCRequiredArgumentBuilder

ZenScript
Copy
MCRequiredArgumentBuilder.fork(target as MCCommandNode, modifier as MCRedirectModifier) as MCRequiredArgumentBuilder
参数类型描述
参数
target
类型
MCCommand节点
描述
No Description Provided
参数
modifier
类型
MC重定向修改器
描述
No Description Provided

Name: forward

Return Type: MCRequiredArgumentBuilder

ZenScript
Copy
MCRequiredArgumentBuilder.forward(target as MCCommandNode, modifier as MCRedirectModifier, fork as boolean) as MCRequiredArgumentBuilder
参数类型描述
参数
target
类型
MCCommand节点
描述
No Description Provided
参数
modifier
类型
MC重定向修改器
描述
No Description Provided
参数
fork
类型
布尔值
描述
No Description Provided

Name: getArguments

Return Type: Collection<MCCommandNode>

ZenScript
Copy
// MCRequiredArgumentBuilder.getArguments() as Collection<MCCommandNode>

myMCRequiredArgumentBuilder.getArguments();

Name: getCommand

Return Type: MCCommand

ZenScript
Copy
// MCRequiredArgumentBuilder.getCommand() as MCCommand

myMCRequiredArgumentBuilder.getCommand();

Name: getName

Return Type: string

ZenScript
Copy
// MCRequiredArgumentBuilder.getName() as string

myMCRequiredArgumentBuilder.getName();

Name: getRedirect

Return Type: MCCommandNode

ZenScript
Copy
// MCRequiredArgumentBuilder.getRedirect() as MCCommandNode

myMCRequiredArgumentBuilder.getRedirect();

Link to getRedirectModifier

Name: getRedirectModifier

Return Type: MCRedirectModifier

ZenScript
Copy
// MCRequiredArgumentBuilder.getRedirectModifier() as MCRedirectModifier

myMCRequiredArgumentBuilder.getRedirectModifier();

Name: getRequirement

Return Type: Predicate<MCCommandSource>

ZenScript
Copy
// MCRequiredArgumentBuilder.getRequirement() as Predicate<MCCommandSource>

myMCRequiredArgumentBuilder.getRequirement();

Link to getSuggestionsProvider

Name: getSuggestionsProvider

Return Type: MCSuggestionProvider

ZenScript
Copy
// MCRequiredArgumentBuilder.getSuggestionsProvider() as MCSuggestionProvider

myMCRequiredArgumentBuilder.getSuggestionsProvider();

Name: hashCode

Return Type: int

ZenScript
Copy
// MCRequiredArgumentBuilder.hashCode() as int

myMCRequiredArgumentBuilder.hashCode();

Name: isFork

Return Type: boolean

ZenScript
Copy
// MCRequiredArgumentBuilder.isFork() as boolean

myMCRequiredArgumentBuilder.isFork();

Name: redirect

Return Type: MCRequiredArgumentBuilder

ZenScript
Copy
MCRequiredArgumentBuilder.redirect(target as MCCommandNode) as MCRequiredArgumentBuilder
参数类型描述
参数
target
类型
MCCommand节点
描述
No Description Provided

Name: redirect

Return Type: MCRequiredArgumentBuilder

ZenScript
Copy
MCRequiredArgumentBuilder.redirect(target as MCCommandNode, modifier as MCSingleRedirectModifier) as MCRequiredArgumentBuilder
参数类型描述
参数
target
类型
MCCommand节点
描述
No Description Provided
参数
modifier
类型
MCSingleRirectModifier
描述
No Description Provided

Name: requires

Return Type: MCRequiredArgumentBuilder

ZenScript
Copy
MCRequiredArgumentBuilder.requires(requirement as Predicate<MCCommandSource>) as MCRequiredArgumentBuilder
参数类型描述
参数
要求
类型
Predicate<MCCommandSource>
描述
No Description Provided

Name: suggests

Return Type: MCRequiredArgumentBuilder

ZenScript
Copy
MCRequiredArgumentBuilder.suggests(provider as MCSuggestionProvider) as MCRequiredArgumentBuilder
参数类型描述
参数
provider
类型
MCSuggestionProvider
描述
No Description Provided

Name: then

Return Type: MCArgumentBuilder

ZenScript
Copy
MCRequiredArgumentBuilder.then(argument as MCArgumentBuilder) as MCArgumentBuilder
参数类型描述
参数
参数
类型
MCArgumentBuilder
描述
No Description Provided

Name: then

Return Type: MCRequiredArgumentBuilder

ZenScript
Copy
MCRequiredArgumentBuilder.then(argument as MCCommandNode) as MCRequiredArgumentBuilder
参数类型描述
参数
参数
类型
MCCommand节点
描述
No Description Provided

Name: then

Return Type: MCRequiredArgumentBuilder

ZenScript
Copy
MCRequiredArgumentBuilder.then(argument as MCRequiredArgumentBuilder) as MCRequiredArgumentBuilder
参数类型描述
参数
参数
类型
MCRequireedArgumentBuilder
描述
No Description Provided

Name: toString

Return Type: string

ZenScript
Copy
// MCRequiredArgumentBuilder.toString() as string

myMCRequiredArgumentBuilder.toString();

Name: EQUALS

ZenScript
Copy
myMCRequiredArgumentBuilder == o as Object