MCCommandContext

Импорт класса

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 at the very top of the file.

import crafttweaker.api.commands.custom.MCCommandContext;

Утилиты

Тип результатаЯвляется неявным
stringtrue

Methods

copyFor

Return Type: MCCommandContext

MCCommandContext.copyFor(source as MCCommandSource) as MCCommandContext
ПараметрТипDescription
источникИсточник MCCommandSourceNo Description Provided

equals

Return Type: boolean

MCCommandContext.equals(o as Object) as boolean
ПараметрТипDescription
oObjectNo Description Provided

getАргумент

Return Type: string

MCCommandContext.getArgument(name as string) as string
ПараметрТипDescription
namestringNo Description Provided

getChild

Return Type: MCCommandContext

MCCommandContext.getChild() as MCCommandContext
myMCCommandContext.getChild();

getCommand

Return Type: MCCommand

MCCommandContext.getCommand() as MCCommand
myMCCommandContext.getCommand();

getInput

Return Type: string

MCCommandContext.getInput() as string
myMCCommandContext.getInput();

getLastChild

Return Type: MCCommandContext

MCCommandContext.getLastChild() as MCCommandContext
myMCCommandContext.getLastChild();

getNodes

Return Type: stdlib.List<MCParsedCommandNode>

MCCommandContext.getNodes() as stdlib.List<MCParsedCommandNode>
myMCCommandContext.getNodes();

getRange

Return Type: MCStringRange

MCCommandContext.getRange() as MCStringRange
myMCCommandContext.getRange();

getRedirectModifier

Return Type: MCRedirectModifier

MCCommandContext.getRedirectModifier() as MCRedirectModifier
myMCCommandContext.getRedirectModifier();

getRootNode

Return Type: MCCommandNode

MCCommandContext.getRootNode() as MCCommandNode
myMCCommandContext.getRootNode();

getSource

Return Type: MCCommandSource

MCCommandContext.getSource() as MCCommandSource
myMCCommandContext.getSource();

hasNodes

Return Type: boolean

MCCommandContext.hasNodes() as boolean
myMCCommandContext.hasNodes();

hashCode

Return Type: int

MCCommandContext.hashCode() as int
myMCCommandContext.hashCode();

isForked

Return Type: boolean

MCCommandContext.isForked() as boolean
myMCCommandContext.isForked();

toString

Return Type: string

MCCommandContext.toString() as string
myMCCommandContext.toString();

Операторы

EQUALS

myMCCommandContext == o как объект