MCCommandNode
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 at the very top of the file.
import crafttweaker.api.commands.custom.MCCommandNode;
Casters
Result type | Is Implicit |
---|---|
Result type string | Is Implicit true |
Methods
Return Type: void
MCCommandNode.addChild(node as MCCommandNode) as void
Parameter | Type | Description |
---|---|---|
Parameter node | Type MCCommandNode | Description No Description Provided |
Return Type: boolean
MCCommandNode.canUse(source as MCCommandSource) as boolean
Parameter | Type | Description |
---|---|---|
Parameter source | Type MCCommandSource | Description No Description Provided |
Return Type: MCArgumentBuilder
// MCCommandNode.createBuilder() as MCArgumentBuilder
myMCCommandNode.createBuilder();
Return Type: boolean
MCCommandNode.equals(o as Object) as boolean
Parameter | Type | Description |
---|---|---|
Parameter o | Type Object | Description No Description Provided |
Return Type: void
MCCommandNode.findAmbiguities(consumer as MCAmbiguityConsumer) as void
Parameter | Type | Description |
---|---|---|
Parameter consumer | Type MCAmbiguityConsumer | Description No Description Provided |
Return Type: MCCommandNode
MCCommandNode.getChild(name as string) as MCCommandNode
Parameter | Type | Description |
---|---|---|
Parameter name | Type string | Description No Description Provided |
Return Type: Collection<MCCommandNode>
// MCCommandNode.getChildren() as Collection<MCCommandNode>
myMCCommandNode.getChildren();
Return Type: MCCommand
// MCCommandNode.getCommand() as MCCommand
myMCCommandNode.getCommand();
Return Type: Collection<string>
// MCCommandNode.getExamples() as Collection<string>
myMCCommandNode.getExamples();
Return Type: string
// MCCommandNode.getName() as string
myMCCommandNode.getName();
Return Type: MCCommandNode
// MCCommandNode.getRedirect() as MCCommandNode
myMCCommandNode.getRedirect();
Return Type: MCRedirectModifier
// MCCommandNode.getRedirectModifier() as MCRedirectModifier
myMCCommandNode.getRedirectModifier();
Return Type: Collection<MCCommandNode>
MCCommandNode.getRelevantNodes(input as string) as Collection<MCCommandNode>
Parameter | Type | Description |
---|---|---|
Parameter input | Type string | Description No Description Provided |
Return Type: Predicate<MCCommandSource>
// MCCommandNode.getRequirement() as Predicate<MCCommandSource>
myMCCommandNode.getRequirement();
Return Type: string
// MCCommandNode.getUsageText() as string
myMCCommandNode.getUsageText();
Return Type: int
// MCCommandNode.hashCode() as int
myMCCommandNode.hashCode();
Return Type: boolean
// MCCommandNode.isFork() as boolean
myMCCommandNode.isFork();
Return Type: MCSuggestions
MCCommandNode.listSuggestions(context as MCCommandContext, builder as MCSuggestionsBuilder) as MCSuggestions
Parameter | Type | Description |
---|---|---|
Parameter context | Type MCCommandContext | Description No Description Provided |
Parameter builder | Type MCSuggestionsBuilder | Description No Description Provided |
Return Type: void
MCCommandNode.parse(input as string, contextBuilder as MCCommandContextBuilder) as void
Parameter | Type | Description |
---|---|---|
Parameter input | Type string | Description No Description Provided |
Parameter contextBuilder | Type MCCommandContextBuilder | Description No Description Provided |
Return Type: string
// MCCommandNode.toString() as string
myMCCommandNode.toString();
Operators
myMCCommandNode < o as MCCommandNode
myMCCommandNode == o as Object