MCCommandContextBuilder

This class was added by a mod with mod-id crafttweaker. So you need to have this mod installed if you want to use this feature.

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.

crafttweaker.api.commands.custom.MCCommandContextBuilder

Methods

build

Return type: crafttweaker.api.commands.custom.MCCommandContext

myMCCommandContextBuilder.build(input as String);
ParameterTypeDescription
inputStringNo description provided

copy

Return type: crafttweaker.api.commands.custom.MCCommandContextBuilder

myMCCommandContextBuilder.copy();

equals

Return type: boolean

myMCCommandContextBuilder.equals(o as Object);
ParameterTypeDescription
oObjectNo description provided

findSuggestionContext

Return type: crafttweaker.api.commands.custom.MCSuggestionContext

myMCCommandContextBuilder.findSuggestionContext(cursor as int);
ParameterTypeDescription
cursorintNo description provided

getArguments

Return type: crafttweaker.api.commands.custom.MCParsedArgument[String]

myMCCommandContextBuilder.getArguments();

getChild

Return type: crafttweaker.api.commands.custom.MCCommandContextBuilder

myMCCommandContextBuilder.getChild();

getCommand

Return type: crafttweaker.api.commands.custom.MCCommand

myMCCommandContextBuilder.getCommand();

getDispatcher

Return type: crafttweaker.api.commands.custom.MCCommandDispatcher

myMCCommandContextBuilder.getDispatcher();

getLastChild

Return type: crafttweaker.api.commands.custom.MCCommandContextBuilder

myMCCommandContextBuilder.getLastChild();

getNodes

Return type: List<crafttweaker.api.commands.custom.MCParsedCommandNode>

myMCCommandContextBuilder.getNodes();

getRange

Return type: crafttweaker.api.commands.custom.MCStringRange

myMCCommandContextBuilder.getRange();

getRootNode

Return type: crafttweaker.api.commands.custom.MCCommandNode

myMCCommandContextBuilder.getRootNode();

getSource

Return type: crafttweaker.api.commands.custom.MCCommandSource

myMCCommandContextBuilder.getSource();

hashCode

Return type: int

myMCCommandContextBuilder.hashCode();

toString

Return type: String

myMCCommandContextBuilder.toString();

withArgument

Return type: crafttweaker.api.commands.custom.MCCommandContextBuilder

myMCCommandContextBuilder.withArgument(name as String, argument as crafttweaker.api.commands.custom.MCParsedArgument);
ParameterTypeDescription
nameStringNo description provided
argumentcrafttweaker.api.commands.custom.MCParsedArgumentNo description provided

withChild

Return type: crafttweaker.api.commands.custom.MCCommandContextBuilder

myMCCommandContextBuilder.withChild(child as crafttweaker.api.commands.custom.MCCommandContextBuilder);
ParameterTypeDescription
childcrafttweaker.api.commands.custom.MCCommandContextBuilderNo description provided

withCommand

Return type: crafttweaker.api.commands.custom.MCCommandContextBuilder

myMCCommandContextBuilder.withCommand(command as crafttweaker.api.commands.custom.MCCommand);
ParameterTypeDescription
commandcrafttweaker.api.commands.custom.MCCommandNo description provided

withNode

Return type: crafttweaker.api.commands.custom.MCCommandContextBuilder

myMCCommandContextBuilder.withNode(node as crafttweaker.api.commands.custom.MCCommandNode, range as crafttweaker.api.commands.custom.MCStringRange);
ParameterTypeDescription
nodecrafttweaker.api.commands.custom.MCCommandNodeNo description provided
rangecrafttweaker.api.commands.custom.MCStringRangeNo description provided

withSource

Return type: crafttweaker.api.commands.custom.MCCommandContextBuilder

myMCCommandContextBuilder.withSource(source as crafttweaker.api.commands.custom.MCCommandSource);
ParameterTypeDescription
sourcecrafttweaker.api.commands.custom.MCCommandSourceNo description provided

연산자

EQUALS

myMCCommandContextBuilder == o as Object
ParameterTypeDescription
oObjectNo description provided

Casters

Result typeIs Implicit
Stringtrue