MCCommandContextBuilder

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

Casters

Result typeIs Implicit
stringtrue

Methoden

build

Return Type: MCCommandContext

ZenScript
Copy
MCCommandContextBuilder.build(input as string) as MCCommandContext
ParameterTypeBeschreibung
inputstringNo Description Provided

copy

Return Type: MCCommandContextBuilder

ZenScript
Copy
MCCommandContextBuilder.copy() as MCCommandContextBuilder
myMCCommandContextBuilder.copy();

equals

Return Type: boolean

ZenScript
Copy
MCCommandContextBuilder.equals(o as Object) as boolean
ParameterTypeBeschreibung
oObjectNo Description Provided

findSuggestionContext

Return Type: MCSuggestionContext

ZenScript
Copy
MCCommandContextBuilder.findSuggestionContext(cursor as int) as MCSuggestionContext
ParameterTypeBeschreibung
cursorintNo Description Provided

getArgumente

Return Type: MCParsedArgument[string]

ZenScript
Copy
MCCommandContextBuilder.getArguments() as MCParsedArgument[string]
myMCCommandContextBuilder.getArguments();

getChild

Return Type: MCCommandContextBuilder

ZenScript
Copy
MCCommandContextBuilder.getChild() as MCCommandContextBuilder
myMCCommandContextBuilder.getChild();

getCommand

Return Type: MCCommand

ZenScript
Copy
MCCommandContextBuilder.getCommand() as MCCommand
myMCCommandContextBuilder.getCommand();

getDispatcher

Return Type: MCCommandDispatcher

ZenScript
Copy
MCCommandContextBuilder.getDispatcher() as MCCommandDispatcher
myMCCommandContextBuilder.getDispatcher();

getLastChild

Return Type: MCCommandContextBuilder

ZenScript
Copy
MCCommandContextBuilder.getLastChild() as MCCommandContextBuilder
myMCCommandContextBuilder.getLastChild();

getNodes

Return Type: stdlib.List<MCParsedCommandNode>

ZenScript
Copy
MCCommandContextBuilder.getNodes() as stdlib.List<MCParsedCommandNode>
myMCCommandContextBuilder.getNodes();

getBereich

Return Type: MCStringRange

ZenScript
Copy
MCCommandContextBuilder.getRange() as MCStringRange
myMCCommandContextBuilder.getRange();

getRootNode

Return Type: MCCommandNode

ZenScript
Copy
MCCommandContextBuilder.getRootNode() as MCCommandNode
myMCCommandContextBuilder.getRootNode();

getSource

Return Type: MCCommandSource

ZenScript
Copy
MCCommandContextBuilder.getSource() as MCCommandSource
myMCCommandContextBuilder.getSource();

hashCode

Return Type: int

ZenScript
Copy
MCCommandContextBuilder.hashCode() as int
myMCCommandContextBuilder.hashCode();

toString

Return Type: string

ZenScript
Copy
MCCommandContextBuilder.toString() as string
myMCCommandContextBuilder.toString();

mit Argument

Return Type: MCCommandContextBuilder

ZenScript
Copy
MCCommandContextBuilder.withArgument(name as string, argument as MCParsedArgument) as MCCommandContextBuilder
ParameterTypeBeschreibung
namestringNo Description Provided
argumentMCParsedArgumentNo Description Provided

ohne Kind

Return Type: MCCommandContextBuilder

ZenScript
Copy
MCCommandContextBuilder.withChild(child as MCCommandContextBuilder) as MCCommandContextBuilder
ParameterTypeBeschreibung
KindMCCommandContextBuilderNo Description Provided

mit Befehl

Return Type: MCCommandContextBuilder

ZenScript
Copy
MCCommandContextBuilder.withCommand(command as MCCommand) as MCCommandContextBuilder
ParameterTypeBeschreibung
commandMCCommandNo Description Provided

withNode

Return Type: MCCommandContextBuilder

ZenScript
Copy
MCCommandContextBuilder.withNode(node as MCCommandNode, range as MCStringRange) as MCCommandContextBuilder
ParameterTypeBeschreibung
knotenMCCommandNodeNo Description Provided
rangeMCStringRangeNo Description Provided

mit Quelle

Return Type: MCCommandContextBuilder

ZenScript
Copy
MCCommandContextBuilder.withSource(source as MCCommandSource) as MCCommandContextBuilder
ParameterTypeBeschreibung
quellMCCommandSourceNo Description Provided

Operatoren

EQUALS

ZenScript
Copy
myMCCommandContextBuilder == o als Objekt