Contexte MCCommandContexte

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

Type de retour : 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 en tant qu'objet);
ParameterTypeDescription
oObjectNo description provided

getArgument

Return type: String

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

getChild

Type de retour : crafttweaker.api.commands.custom.MCCommandContext

myMCCommandContext.getChild();

getCommand

Type de retour : crafttweaker.api.commands.custom.MCCommand

myMCCommandContext.getCommand();

getInput

Return type: String

myMCCommandContext.getInput();

getLastChild

Type de retour : crafttweaker.api.commands.custom.MCCommandContext

myMCCommandContext.getLastChild();

getNodes

Type de retour : Liste<crafttweaker.api.commands.custom.MCParsedCommandNode>

myMCCommandContext.getNodes();

Gamme d'obtention

Type de retour : crafttweaker.api.commands.custom.MCStringRange

myMCCommandContext.getRange();

Obtenir le modificateur de redirection

Type de retour : crafttweaker.api.commands.custom.MCRedirectModifier

myMCCommandContext.getRedirectModifier();

getRootNode

Type de retour : crafttweaker.api.commands.custom.MCCommandNode

myMCCommandContext.getRootNode();

getSource

Type de retour : 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();

Operators

EQUALS

myMCCommandContext == o en tant qu'objet
ParameterTypeDescription
oObjectNo description provided

Casters

Result typeIs Implicit
Stringtrue