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

戻り値の型: crafttweaker.api.commands.custom.MCCommandContext

myMCCommandContext.copyFor(source as crafttweaker.api.commands.custom.MCCommandSource);
ParameterTypeDescription
ソースcrafttweaker.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

戻り値の型: crafttweaker.api.commands.custom.MCCommandContext

myMCCommandContext.getChild();

getCommand

戻り値の型: crafttweaker.api.commands.custom.MCCommand

myMCCommandContext.getCommand();

getInput

Return type: String

myMCCommandContext.getInput();

getLastChild

戻り値の型: crafttweaker.api.commands.custom.MCCommandContext

myMCCommandContext.getLastChild();

getNodes

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

myMCCommandContext.getNodes();

getRange

戻り値の型: crafttweaker.api.commands.custom.MCStringRange

myMCCommandContext.getRange();

getRedirectModifier

戻り値の型: crafttweaker.api.commands.custom.MCRedirectModifier

myMCCommandContext.getRedirectModifier();

getRootNode

戻り値の型: crafttweaker.api.commands.custom.MCCommandNode

myMCCommandContext.getRootNode();

getSource

戻り値の型: 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 をオブジェクトとして
ParameterTypeDescription
oObjectNo description provided

Casters

Result typeIs Implicit
Stringtrue