MCArgumentBuilder

Link to mcargumentbuilder

Importare la Classe

Link to importare-la-classe

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.MCArgumentBuilder;
Tipo RisultatoImplicito
Tipo Risultato
string
Implicito

Name: build

Return Type: MCCommandNode

ZenScript
Copy
// MCArgumentBuilder.build() as MCCommandNode

myMCArgumentBuilder.build();

Name: equals

Return Type: boolean

ZenScript
Copy
MCArgumentBuilder.equals(o as Object) as boolean
ParametroTipoDescrizione
Parametro
o
Tipo
Object
Descrizione
No Description Provided

Name: executes

Return Type: MCArgumentBuilder

ZenScript
Copy
MCArgumentBuilder.executes(command as MCCommand) as MCArgumentBuilder
ParametroTipoDescrizione
Parametro
command
Tipo
MCCommand
Descrizione
No Description Provided

Name: fork

Return Type: MCArgumentBuilder

ZenScript
Copy
MCArgumentBuilder.fork(target as MCCommandNode, modifier as MCRedirectModifier) as MCArgumentBuilder
ParametroTipoDescrizione
Parametro
target
Tipo
MCCommandNode
Descrizione
No Description Provided
Parametro
modifier
Tipo
MCRedirectModifier
Descrizione
No Description Provided

Name: forward

Return Type: MCArgumentBuilder

ZenScript
Copy
MCArgumentBuilder.forward(target as MCCommandNode, modifier as MCRedirectModifier, fork as boolean) as MCArgumentBuilder
ParametroTipoDescrizione
Parametro
target
Tipo
MCCommandNode
Descrizione
No Description Provided
Parametro
modifier
Tipo
MCRedirectModifier
Descrizione
No Description Provided
Parametro
fork
Tipo
boolean
Descrizione
No Description Provided

Name: getArguments

Return Type: Collection<MCCommandNode>

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

myMCArgumentBuilder.getArguments();

Name: getCommand

Return Type: MCCommand

ZenScript
Copy
// MCArgumentBuilder.getCommand() as MCCommand

myMCArgumentBuilder.getCommand();

Name: getRedirect

Return Type: MCCommandNode

ZenScript
Copy
// MCArgumentBuilder.getRedirect() as MCCommandNode

myMCArgumentBuilder.getRedirect();

Link to getRedirectModifier

Name: getRedirectModifier

Return Type: MCRedirectModifier

ZenScript
Copy
// MCArgumentBuilder.getRedirectModifier() as MCRedirectModifier

myMCArgumentBuilder.getRedirectModifier();

Name: getRequirement

Return Type: Predicate<MCCommandSource>

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

myMCArgumentBuilder.getRequirement();

Name: hashCode

Return Type: int

ZenScript
Copy
// MCArgumentBuilder.hashCode() as int

myMCArgumentBuilder.hashCode();

Name: isFork

Return Type: boolean

ZenScript
Copy
// MCArgumentBuilder.isFork() as boolean

myMCArgumentBuilder.isFork();

Name: redirect

Return Type: MCArgumentBuilder

ZenScript
Copy
MCArgumentBuilder.redirect(target as MCCommandNode) as MCArgumentBuilder
ParametroTipoDescrizione
Parametro
target
Tipo
MCCommandNode
Descrizione
No Description Provided

Name: redirect

Return Type: MCArgumentBuilder

ZenScript
Copy
MCArgumentBuilder.redirect(target as MCCommandNode, modifier as MCSingleRedirectModifier) as MCArgumentBuilder
ParametroTipoDescrizione
Parametro
target
Tipo
MCCommandNode
Descrizione
No Description Provided
Parametro
modifier
Tipo
MCSingleRedirectModifier
Descrizione
No Description Provided

Name: requires

Return Type: MCArgumentBuilder

ZenScript
Copy
MCArgumentBuilder.requires(requirement as Predicate<MCCommandSource>) as MCArgumentBuilder
ParametroTipoDescrizione
Parametro
requisito
Tipo
Predicate<MCCommandSource>
Descrizione
No Description Provided

Name: then

Return Type: MCArgumentBuilder

ZenScript
Copy
MCArgumentBuilder.then(argument as MCArgumentBuilder) as MCArgumentBuilder
ParametroTipoDescrizione
Parametro
argomento
Tipo
MCArgumentBuilder
Descrizione
No Description Provided

Name: then

Return Type: MCArgumentBuilder

ZenScript
Copy
MCArgumentBuilder.then(argument as MCCommandNode) as MCArgumentBuilder
ParametroTipoDescrizione
Parametro
argomento
Tipo
MCCommandNode
Descrizione
No Description Provided

Name: toString

Return Type: string

ZenScript
Copy
// MCArgumentBuilder.toString() as string

myMCArgumentBuilder.toString();

Name: EQUALS

ZenScript
Copy
myMCArgumentBuilder == o come oggetto