MCRequiredArgumentBuilder

Импорт класса

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

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

Утилиты

Тип результатаЯвляется неявным
stringtrue

Methods

build

Return Type: MCArgumentCommandNode

ZenScript
Copy
MCRequiredArgumentBuilder.build() as MCArgumentCommandNode
myMCRequiredArgumentBuilder.build();
equals

Return Type: boolean

ZenScript
Copy
MCRequiredArgumentBuilder.equals(o as Object) as boolean
ПараметрТипDescription
oObjectNo Description Provided
executes

Return Type: MCRequiredArgumentBuilder

ZenScript
Copy
MCRequiredArgumentBuilder.executes(command as MCCommand) as MCRequiredArgumentBuilder
ПараметрТипDescription
commandMCCommandNo Description Provided
fork

Return Type: MCRequiredArgumentBuilder

ZenScript
Copy
MCRequiredArgumentBuilder.fork(target as MCCommandNode, modifier as MCRedirectModifier) as MCRequiredArgumentBuilder
ПараметрТипDescription
targetMCCommandNodeNo Description Provided
modifierМCRedirectМодификаторNo Description Provided
forward

Return Type: MCRequiredArgumentBuilder

ZenScript
Copy
MCRequiredArgumentBuilder.forward(target as MCCommandNode, modifier as MCRedirectModifier, fork as boolean) as MCRequiredArgumentBuilder
ПараметрТипDescription
targetMCCommandNodeNo Description Provided
modifierМCRedirectМодификаторNo Description Provided
forkbooleanNo Description Provided
getArguments

Return Type: Collection<MCCommandNode>

ZenScript
Copy
MCRequiredArgumentBuilder.getArguments() as Collection<MCCommandNode>
myMCRequiredArgumentBuilder.getArguments();
getCommand

Return Type: MCCommand

ZenScript
Copy
MCRequiredArgumentBuilder.getCommand() as MCCommand
myMCRequiredArgumentBuilder.getCommand();
getName

Return Type: string

ZenScript
Copy
MCRequiredArgumentBuilder.getName() as string
myMCRequiredArgumentBuilder.getName();
getRedirect

Return Type: MCCommandNode

ZenScript
Copy
MCRequiredArgumentBuilder.getRedirect() as MCCommandNode
myMCRequiredArgumentBuilder.getRedirect();
getRedirectModifier

Return Type: MCRedirectModifier

ZenScript
Copy
MCRequiredArgumentBuilder.getRedirectModifier() as MCRedirectModifier
myMCRequiredArgumentBuilder.getRedirectModifier();
getRequirement

Return Type: Predicate<MCCommandSource>

ZenScript
Copy
MCRequiredArgumentBuilder.getRequirement() as Predicate<MCCommandSource>
myMCRequiredArgumentBuilder.getRequirement();
getSuggestionsProvider

Return Type: MCSuggestionProvider

ZenScript
Copy
MCRequiredArgumentBuilder.getSuggestionsProvider() as MCSuggestionProvider
myMCRequiredArgumentBuilder.getSuggestionsProvider();
hashCode

Return Type: int

ZenScript
Copy
MCRequiredArgumentBuilder.hashCode() as int
myMCRequiredArgumentBuilder.hashCode();
isFork

Return Type: boolean

ZenScript
Copy
MCRequiredArgumentBuilder.isFork() as boolean
myMCRequiredArgumentBuilder.isFork();
redirect

Return Type: MCRequiredArgumentBuilder

ZenScript
Copy
MCRequiredArgumentBuilder.redirect(target as MCCommandNode) as MCRequiredArgumentBuilder
ПараметрТипDescription
targetMCCommandNodeNo Description Provided
redirect

Return Type: MCRequiredArgumentBuilder

ZenScript
Copy
MCRequiredArgumentBuilder.redirect(target as MCCommandNode, modifier as MCSingleRedirectModifier) as MCRequiredArgumentBuilder
ПараметрТипDescription
targetMCCommandNodeNo Description Provided
modifierМодификатор перенаправления MCSingleRedirectModifierNo Description Provided
requires

Return Type: MCRequiredArgumentBuilder

ZenScript
Copy
MCRequiredArgumentBuilder.requires(requirement as Predicate<MCCommandSource>) as MCRequiredArgumentBuilder
ПараметрТипDescription
требованиеPredicate<MCCommandSource>No Description Provided
suggests

Return Type: MCRequiredArgumentBuilder

ZenScript
Copy
MCRequiredArgumentBuilder.suggests(provider as MCSuggestionProvider) as MCRequiredArgumentBuilder
ПараметрТипDescription
providerMCSuggesProviderNo Description Provided
then

Return Type: MCArgumentBuilder

ZenScript
Copy
MCRequiredArgumentBuilder.then(argument as MCArgumentBuilder) as MCArgumentBuilder
ПараметрТипDescription
аргументMCArgumentBuilderNo Description Provided
then

Return Type: MCRequiredArgumentBuilder

ZenScript
Copy
MCRequiredArgumentBuilder.then(argument as MCCommandNode) as MCRequiredArgumentBuilder
ПараметрТипDescription
аргументMCCommandNodeNo Description Provided
then

Return Type: MCRequiredArgumentBuilder

ZenScript
Copy
MCRequiredArgumentBuilder.then(argument as MCRequiredArgumentBuilder) as MCRequiredArgumentBuilder
ПараметрТипDescription
аргументMCRequiredArgumentBuilderNo Description Provided
toString

Return Type: string

ZenScript
Copy
MCRequiredArgumentBuilder.toString() as string
myMCRequiredArgumentBuilder.toString();

Операторы

EQUALS
ZenScript
Copy
myMCRequiredArgumentBuilder == o as Object