MCCommandContext

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.MCCommandContext

Methods

copyFor

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

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

equals

Return type: boolean

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

getArgument

Return type: String

myMCCommandContext.getArgument(name as String);
ParameterTypeDescription
nameStringNo description provided

getChild

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

myMCCommandContext.getChild();

getCommand

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

myMCCommandContext.getCommand();

getInput

Return type: String

myMCCommandContext.getInput();

getLastChild

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

myMCCommandContext.getLastChild();

getNodes

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

myMCCommandContext.getNodes();

getRange

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

myMCCommandContext.getRange();

getRedirectModifier

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

myMCCommandContext.getRedirectModifier();

getRootNode

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

myMCCommandContext.getRootNode();

getSource

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

myMCCommandContext.getSource();

hasNodes

Return type: boolean

myMCCommandContext.hasNodes();

hashCode

Return type: int

myMCCommandContext.hashCode();

isForked

Return type: boolean

myMCCommandContext.isForked();

toString

Return type: String

myMCCommandContext.toString();

연산자

EQUALS

myMCCommandContext == o as Object
ParameterTypeDescription
oObjectNo description provided

Casters

Result typeIs Implicit
Stringtrue