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

Typ zwrotu: crafttweaker.api.commands.custom.MCCommandContext

myMCCommandContext.copyFor(źródło jako crafttweaker.api.commands.custom.MCCommandSource);
ParameterTypeDescription
źródłocrafttweaker.api.commands.custom.MCCommandSourceNo description provided

equals

Return type: boolean

myMCCommandContext.equals(o jako Obiekt);
ParameterTypeDescription
oObjectNo description provided

Argument getArgument

Return type: String

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

getChild

Typ zwrotu: crafttweaker.api.commands.custom.MCCommandContext

myMCCommandContext.getChild();

getCommand

Typ zwrotu: crafttweaker.api.commands.custom.MCCommand

myMCCommandContext.getCommand();

getInput

Return type: String

myMCCommandContext.getInput();

getLastChild

Typ zwrotu: crafttweaker.api.commands.custom.MCCommandContext

myMCCommandContext.getLastChild();

getNodes

Typ zwrotu: Lista<crafttweaker.api.commands.custom.MCParsedCommandNode>

myMCCommandContext.getNodes();

Zakres getRange

Typ zwrotu: crafttweaker.api.commands.custom.MCStringRange

myMCCommandContext.getRange();

getRedirectModifier

Typ zwrotu: crafttweaker.api.commands.custom.MCRedirectModifier

myMCCommandContext.getRedirectModifier();

getRootNode

Typ zwrotu: crafttweaker.api.commands.custom.MCCommandNode

myMCCommandContext.getRootNode();

getSource

Typ zwrotu: crafttweaker.api.commands.custom.MCCommandSource

myMCCommandContext.getSource();

hasNodes

Return type: boolean

myMCCommandContext.hasNodes();

hashCode

Return type: int

myMCCommandContext.hashCode();

isforkowany

Return type: boolean

myMCCommandContext.isForked();

toString

Return type: String

myMCCommandContext.toString();

Operators

EQUALS

myMCCommandContext == o jako obiekt
ParameterTypeDescription
oObjectNo description provided

Casters

Result typeIs Implicit
Stringtrue