MCLiteralArgumentBuilder

Link to mcliteralargumentbuilder

Diese Klasse importieren

Link to diese-klasse-importieren

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

Extending MCArgumentBuilder

Link to extending-mcargumentbuilder

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

Result typeIs Implicit
Result type
string
Is Implicit
true

Name: build

Return Type: MCLiteralCommandNode

ZenScript
Copy
// MCLiteralArgumentBuilder.build() as MCLiteralCommandNode

myMCLiteralArgumentBuilder.build();

Name: equals

Return Type: boolean

ZenScript
Copy
MCLiteralArgumentBuilder.equals(o as Object) as boolean
ParameterTypeBeschreibung
Parameter
o
Type
Object
Beschreibung
No Description Provided

Name: executes

Return Type: MCLiteralArgumentBuilder

ZenScript
Copy
MCLiteralArgumentBuilder.executes(command as MCCommand) as MCLiteralArgumentBuilder
ParameterTypeBeschreibung
Parameter
command
Type
MCCommand
Beschreibung
No Description Provided

Name: fork

Return Type: MCLiteralArgumentBuilder

ZenScript
Copy
MCLiteralArgumentBuilder.fork(target as MCCommandNode, modifier as MCRedirectModifier) as MCLiteralArgumentBuilder
ParameterTypeBeschreibung
Parameter
target
Type
MCCommandNode
Beschreibung
No Description Provided
Parameter
modifier
Type
MCRedirectModifizierer
Beschreibung
No Description Provided

Name: forward

Return Type: MCLiteralArgumentBuilder

ZenScript
Copy
MCLiteralArgumentBuilder.forward(target as MCCommandNode, modifier as MCRedirectModifier, fork as boolean) as MCLiteralArgumentBuilder
ParameterTypeBeschreibung
Parameter
target
Type
MCCommandNode
Beschreibung
No Description Provided
Parameter
modifier
Type
MCRedirectModifizierer
Beschreibung
No Description Provided
Parameter
fork
Type
boolean
Beschreibung
No Description Provided

Name: getArguments

Return Type: Collection<MCCommandNode>

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

myMCLiteralArgumentBuilder.getArguments();

Name: getCommand

Return Type: MCCommand

ZenScript
Copy
// MCLiteralArgumentBuilder.getCommand() as MCCommand

myMCLiteralArgumentBuilder.getCommand();

Name: getLiteral

Return Type: string

ZenScript
Copy
// MCLiteralArgumentBuilder.getLiteral() as string

myMCLiteralArgumentBuilder.getLiteral();

Name: getRedirect

Return Type: MCCommandNode

ZenScript
Copy
// MCLiteralArgumentBuilder.getRedirect() as MCCommandNode

myMCLiteralArgumentBuilder.getRedirect();

Link to getRedirectModifier

Name: getRedirectModifier

Return Type: MCRedirectModifier

ZenScript
Copy
// MCLiteralArgumentBuilder.getRedirectModifier() as MCRedirectModifier

myMCLiteralArgumentBuilder.getRedirectModifier();

Name: getRequirement

Return Type: Predicate<MCCommandSource>

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

myMCLiteralArgumentBuilder.getRequirement();

Name: hashCode

Return Type: int

ZenScript
Copy
// MCLiteralArgumentBuilder.hashCode() as int

myMCLiteralArgumentBuilder.hashCode();

Name: isFork

Return Type: boolean

ZenScript
Copy
// MCLiteralArgumentBuilder.isFork() as boolean

myMCLiteralArgumentBuilder.isFork();

Name: redirect

Return Type: MCLiteralArgumentBuilder

ZenScript
Copy
MCLiteralArgumentBuilder.redirect(target as MCCommandNode) as MCLiteralArgumentBuilder
ParameterTypeBeschreibung
Parameter
target
Type
MCCommandNode
Beschreibung
No Description Provided

Name: redirect

Return Type: MCLiteralArgumentBuilder

ZenScript
Copy
MCLiteralArgumentBuilder.redirect(target as MCCommandNode, modifier as MCSingleRedirectModifier) as MCLiteralArgumentBuilder
ParameterTypeBeschreibung
Parameter
target
Type
MCCommandNode
Beschreibung
No Description Provided
Parameter
modifier
Type
MCSingleRedirectModifizierer
Beschreibung
No Description Provided

Name: requires

Return Type: MCLiteralArgumentBuilder

ZenScript
Copy
MCLiteralArgumentBuilder.requires(requirement as Predicate<MCCommandSource>) as MCLiteralArgumentBuilder
ParameterTypeBeschreibung
Parameter
voraussetzung
Type
Predicate<MCCommandSource>
Beschreibung
No Description Provided

Name: then

Return Type: MCLiteralArgumentBuilder

ZenScript
Copy
MCLiteralArgumentBuilder.then(argument as MCArgumentBuilder) as MCLiteralArgumentBuilder
ParameterTypeBeschreibung
Parameter
argument
Type
MCArgumentBuilder
Beschreibung
No Description Provided

Name: then

Return Type: MCLiteralArgumentBuilder

ZenScript
Copy
MCLiteralArgumentBuilder.then(argument as MCCommandNode) as MCLiteralArgumentBuilder
ParameterTypeBeschreibung
Parameter
argument
Type
MCCommandNode
Beschreibung
No Description Provided

Name: toString

Return Type: string

ZenScript
Copy
// MCLiteralArgumentBuilder.toString() as string

myMCLiteralArgumentBuilder.toString();

Name: EQUALS

ZenScript
Copy
myMCLiteralArgumentBuilder == o as Object