MCArgumentCommandNode
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.MCArgumentCommandNode;
Extending MCCommandNode
MCArgumentCommandNode extends MCCommandNode. That means all methods available in MCCommandNode are also available in MCArgumentCommandNode
Casters
Result type | Is Implicit |
---|
string | true |
Methods
addChild
Return Type: void
MCArgumentCommandNode.addChild(node as MCCommandNode) as void
Parameter | Type | Description |
---|
węzeł | MCCommandNode | No Description Provided |
canUse
Return Type: boolean
MCArgumentCommandNode.canUse(source as MCCommandSource) as boolean
createBuilder
Return Type: MCRequiredArgumentBuilder
MCArgumentCommandNode.createBuilder() as MCRequiredArgumentBuilder
myMCArgumentCommandNode.createBuilder();
equals
Return Type: boolean
MCArgumentCommandNode.equals(o as Object) as boolean
Parameter | Type | Description |
---|
o | Object | No Description Provided |
Rozmiary wyników
Return Type: void
MCArgumentCommandNode.findAmbiguities(consumer as MCAmbiguityConsumer) as void
getChild
Return Type: MCCommandNode
MCArgumentCommandNode.getChild(name as string) as MCCommandNode
Parameter | Type | Description |
---|
name | string | No Description Provided |
getChildren
Return Type: Collection<MCCommandNode>
MCArgumentCommandNode.getChildren() as Collection<MCCommandNode>
myMCArgumentCommandNode.getChildren();
getCommand
Return Type: MCCommand
MCArgumentCommandNode.getCommand() as MCCommand
myMCArgumentCommandNode.getCommand();
getCustomSuggestions
Return Type: MCSuggestionProvider
MCArgumentCommandNode.getCustomSuggestions() as MCSuggestionProvider
myMCArgumentCommandNode.getCustomSuggestions();
getExamples
Return Type: Collection<string>
MCArgumentCommandNode.getExamples() as Collection<string>
myMCArgumentCommandNode.getExamples();
getName
Return Type: string
MCArgumentCommandNode.getName() as string
myMCArgumentCommandNode.getName();
getRedirect
Return Type: MCCommandNode
MCArgumentCommandNode.getRedirect() as MCCommandNode
myMCArgumentCommandNode.getRedirect();
getRedirectModifier
Return Type: MCRedirectModifier
MCArgumentCommandNode.getRedirectModifier() as MCRedirectModifier
myMCArgumentCommandNode.getRedirectModifier();
getRelevantNodes
Return Type: Collection<MCCommandNode>
MCArgumentCommandNode.getRelevantNodes(input as string) as Collection<MCCommandNode>
Parameter | Type | Description |
---|
input | string | No Description Provided |
Wymaganie pobierania
Return Type: Predicate<MCCommandSource>
MCArgumentCommandNode.getRequirement() as Predicate<MCCommandSource>
myMCArgumentCommandNode.getRequirement();
getUsageText
Return Type: string
MCArgumentCommandNode.getUsageText() as string
myMCArgumentCommandNode.getUsageText();
hashCode
Return Type: int
MCArgumentCommandNode.hashCode() as int
myMCArgumentCommandNode.hashCode();
isFork
Return Type: boolean
MCArgumentCommandNode.isFork() as boolean
myMCArgumentCommandNode.isFork();
listSuggestions
Return Type: MCSuggestions
MCArgumentCommandNode.listSuggestions(context as MCCommandContext, builder as MCSuggestionsBuilder) as MCSuggestions
parse
Return Type: void
MCArgumentCommandNode.parse(input as string, contextBuilder as MCCommandContextBuilder) as void
Parameter | Type | Description |
---|
input | string | No Description Provided |
contextBuilder | MCCommandContextBuilder | No Description Provided |
toString
Return Type: string
MCArgumentCommandNode.toString() as string
myMCArgumentCommandNode.toString();
Operators
COMPARE
myMCArgumentCommandNode < o as MCCommandNode
EQUALS
myMCArgumentCommandNode == o as Object