Contexto MCCommandContextBuilder

Link to contexto-mccommandcontextbuilder

Importing the class

Link to importing-the-class

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;
Result typeIs Implicit
Result type
string
Is Implicit
true

Name: build

Return Type: MCCommandContext

ZenScript
Copy
MCCommandContextBuilder.build(input as string) as MCCommandContext
ParameterTypeDescription
Parameter
input
Type
string
Description
No Description Provided

Name: copy

Return Type: MCCommandContextBuilder

ZenScript
Copy
// MCCommandContextBuilder.copy() as MCCommandContextBuilder

myMCCommandContextBuilder.copy();

Name: equals

Return Type: boolean

ZenScript
Copy
MCCommandContextBuilder.equals(o as Object) as boolean
ParameterTypeDescription
Parameter
o
Type
Object
Description
No Description Provided

Link to g--3

Name: findSuggestionContext

Return Type: MCSuggestionContext

ZenScript
Copy
MCCommandContextBuilder.findSuggestionContext(cursor as int) as MCSuggestionContext
ParameterTypeDescription
Parameter
cursor
Type
int
Description
No Description Provided

Link to g--4

Name: getArguments

Return Type: MCParsedArgument[string]

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

myMCCommandContextBuilder.getArguments();

Link to g--5

Name: getChild

Return Type: MCCommandContextBuilder

ZenScript
Copy
// MCCommandContextBuilder.getChild() as MCCommandContextBuilder

myMCCommandContextBuilder.getChild();

Link to g--6

Name: getCommand

Return Type: MCCommand

ZenScript
Copy
// MCCommandContextBuilder.getCommand() as MCCommand

myMCCommandContextBuilder.getCommand();

Link to g--7

Name: getDispatcher

Return Type: MCCommandDispatcher

ZenScript
Copy
// MCCommandContextBuilder.getDispatcher() as MCCommandDispatcher

myMCCommandContextBuilder.getDispatcher();

Link to g--8

Name: getLastChild

Return Type: MCCommandContextBuilder

ZenScript
Copy
// MCCommandContextBuilder.getLastChild() as MCCommandContextBuilder

myMCCommandContextBuilder.getLastChild();

Link to g--9

Name: getNodes

Return Type: stdlib.List<MCParsedCommandNode>

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

myMCCommandContextBuilder.getNodes();

Name: getRange

Return Type: MCStringRange

ZenScript
Copy
// MCCommandContextBuilder.getRange() as MCStringRange

myMCCommandContextBuilder.getRange();

Link to g--11

Name: getRootNode

Return Type: MCCommandNode

ZenScript
Copy
// MCCommandContextBuilder.getRootNode() as MCCommandNode

myMCCommandContextBuilder.getRootNode();

Link to g--12

Name: getSource

Return Type: MCCommandSource

ZenScript
Copy
// MCCommandContextBuilder.getSource() as MCCommandSource

myMCCommandContextBuilder.getSource();

Name: hashCode

Return Type: int

ZenScript
Copy
// MCCommandContextBuilder.hashCode() as int

myMCCommandContextBuilder.hashCode();

Name: toString

Return Type: string

ZenScript
Copy
// MCCommandContextBuilder.toString() as string

myMCCommandContextBuilder.toString();

Link to g--15

Name: withArgument

Return Type: MCCommandContextBuilder

ZenScript
Copy
MCCommandContextBuilder.withArgument(name as string, argument as MCParsedArgument) as MCCommandContextBuilder
ParameterTypeDescription
Parameter
name
Type
string
Description
No Description Provided
Parameter
argumento
Type
MCParsedArgument
Description
No Description Provided

Link to g--16

Name: withChild

Return Type: MCCommandContextBuilder

ZenScript
Copy
MCCommandContextBuilder.withChild(child as MCCommandContextBuilder) as MCCommandContextBuilder
ParameterTypeDescription
Parameter
niño
Type
Contexto MCCommandContextBuilder
Description
No Description Provided

Link to g--17

Name: withCommand

Return Type: MCCommandContextBuilder

ZenScript
Copy
MCCommandContextBuilder.withCommand(command as MCCommand) as MCCommandContextBuilder
ParameterTypeDescription
Parameter
command
Type
MCCommand
Description
No Description Provided

Name: withNode

Return Type: MCCommandContextBuilder

ZenScript
Copy
MCCommandContextBuilder.withNode(node as MCCommandNode, range as MCStringRange) as MCCommandContextBuilder
ParameterTypeDescription
Parameter
nodo
Type
Nodo MCComando
Description
No Description Provided
Parameter
range
Type
MCStringRange
Description
No Description Provided

Link to g--19

Name: withSource

Return Type: MCCommandContextBuilder

ZenScript
Copy
MCCommandContextBuilder.withSource(source as MCCommandSource) as MCCommandContextBuilder
ParameterTypeDescription
Parameter
fuente
Type
Fuente MCCommandSource
Description
No Description Provided

Name: EQUALS

ZenScript
Copy
myMCCommandContextBuilder == o como objeto