MCCommandContextBuilder

Link to mccommandcontextbuilder

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

Link to импорт-класса

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;
Тип результатаЯвляется неявным
Тип результата
string
Является неявным
true

Name: build

Return Type: MCCommandContext

ZenScript
Copy
MCCommandContextBuilder.build(input as string) as MCCommandContext
ПараметрТипОписание
Параметр
input
Тип
string
Описание
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
ПараметрТипОписание
Параметр
o
Тип
Object
Описание
No Description Provided

Link to findSuggestionContext

Name: findSuggestionContext

Return Type: MCSuggestionContext

ZenScript
Copy
MCCommandContextBuilder.findSuggestionContext(cursor as int) as MCSuggestionContext
ПараметрТипОписание
Параметр
cursor
Тип
int
Описание
No Description Provided

Name: getArguments

Return Type: MCParsedArgument[string]

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

myMCCommandContextBuilder.getArguments();

Name: getChild

Return Type: MCCommandContextBuilder

ZenScript
Copy
// MCCommandContextBuilder.getChild() as MCCommandContextBuilder

myMCCommandContextBuilder.getChild();

Name: getCommand

Return Type: MCCommand

ZenScript
Copy
// MCCommandContextBuilder.getCommand() as MCCommand

myMCCommandContextBuilder.getCommand();

Name: getDispatcher

Return Type: MCCommandDispatcher

ZenScript
Copy
// MCCommandContextBuilder.getDispatcher() as MCCommandDispatcher

myMCCommandContextBuilder.getDispatcher();

Name: getLastChild

Return Type: MCCommandContextBuilder

ZenScript
Copy
// MCCommandContextBuilder.getLastChild() as MCCommandContextBuilder

myMCCommandContextBuilder.getLastChild();

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();

Name: getRootNode

Return Type: MCCommandNode

ZenScript
Copy
// MCCommandContextBuilder.getRootNode() as MCCommandNode

myMCCommandContextBuilder.getRootNode();

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();

Name: withArgument

Return Type: MCCommandContextBuilder

ZenScript
Copy
MCCommandContextBuilder.withArgument(name as string, argument as MCParsedArgument) as MCCommandContextBuilder
ПараметрТипОписание
Параметр
name
Тип
string
Описание
No Description Provided
Параметр
аргумент
Тип
Аргумент MCParsedArgument
Описание
No Description Provided

Name: withChild

Return Type: MCCommandContextBuilder

ZenScript
Copy
MCCommandContextBuilder.withChild(child as MCCommandContextBuilder) as MCCommandContextBuilder
ПараметрТипОписание
Параметр
ребенок
Тип
MCCommandContextBuilder
Описание
No Description Provided

Name: withCommand

Return Type: MCCommandContextBuilder

ZenScript
Copy
MCCommandContextBuilder.withCommand(command as MCCommand) as MCCommandContextBuilder
ПараметрТипОписание
Параметр
command
Тип
MCCommand
Описание
No Description Provided

Name: withNode

Return Type: MCCommandContextBuilder

ZenScript
Copy
MCCommandContextBuilder.withNode(node as MCCommandNode, range as MCStringRange) as MCCommandContextBuilder
ПараметрТипОписание
Параметр
узел
Тип
MCCommandNode
Описание
No Description Provided
Параметр
range
Тип
MCStringRange
Описание
No Description Provided

Name: withSource

Return Type: MCCommandContextBuilder

ZenScript
Copy
MCCommandContextBuilder.withSource(source as MCCommandSource) as MCCommandContextBuilder
ПараметрТипОписание
Параметр
источник
Тип
Источник MCCommandSource
Описание
No Description Provided

Операторы

Link to операторы

Name: EQUALS

ZenScript
Copy
myMCCommandContextBuilder == o как объект