MCCommandNode

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.MCCommandNode

Methods

addChild

myMCCommandNode.addChild(node as crafttweaker.api.commands.custom.MCCommandNode);
ParameterTypeDescription
węzełcrafttweaker.api.commands.custom.MCCommandNodeNo description provided

canUse

Return type: boolean

myMCCommandNode.canUse(source as crafttweaker.api.commands.custom.MCCommandSource);
ParameterTypeDescription
źródłocrafttweaker.api.commands.custom.MCCommandSourceNo description provided

createBuilder

Typ zwrotu: crafttweaker.api.commands.custom.MCArgumentBuilder

myMCCommandNode.createBuilder();

equals

Return type: boolean

myMCCommandNode.equals(o as Object);
ParameterTypeDescription
oObjectNo description provided

Rozmiary wyników

myMCCommandNode.findAmbiguities(consumer as crafttweaker.api.commands.custom.MCAmbiguityConsumer);
ParameterTypeDescription
konsumentcrafttweaker.api.commands.custom.MCAmbiguityConsumerNo description provided

getChild

Typ zwrotu: crafttweaker.api.commands.custom.MCCommandNode

myMCCommandNode.getChild(name as String);
ParameterTypeDescription
nameStringNo description provided

getChildren

Typ zwrotu: Kolekcja<crafttweaker.api.commands.custom.MCCommandNode>

myMCCommandNode.getChildren();

getCommand

Typ zwrotu: crafttweaker.api.commands.custom.MCCommand

myMCCommandNode.getCommand();

getExamples

Typ zwrotu: Kolekcja<String>

myMCCommandNode.getExamples();

getName

Return type: String

myMCCommandNode.getName();

getRedirect

Typ zwrotu: crafttweaker.api.commands.custom.MCCommandNode

myMCCommandNode.getRedirect();

getRedirectModifier

Typ zwrotu: crafttweaker.api.commands.custom.MCRedirectModifier

myMCCommandNode.getRedirectModifier();

getRelevantNodes

Typ zwrotu: Kolekcja<crafttweaker.api.commands.custom.MCCommandNode>

myMCCommandNode.getRelevantNodes(input as String);
ParameterTypeDescription
inputStringNo description provided

Wymaganie pobierania

Typ zwracania: function.Predicate<crafttweaker.api.commands.custom.MCCommandSource>

myMCCommandNode.getRequirement();

getUsageText

Return type: String

myMCCommandNode.getUsageText();

hashCode

Return type: int

myMCCommandNode.hashCode();

isFork

Return type: boolean

myMCCommandNode.isFork();

listSuggestions

Typ zwrotu: crafttweaker.api.commands.custom.MCSuggestions

myMCCommandNode.listSuggestions(context as crafttweaker.api.commands.custom.MCCommandContext, builder as crafttweaker.api.commands.custom.MCSuggestionsBuilder);
ParameterTypeDescription
kontekstcrafttweaker.api.commands.custom.MCCommandContextNo description provided
konstruktorcrafttweaker.api.commands.custom.MCSuggestionsBuilderNo description provided

parse

myMCCommandNode.parse(input as String, contextBuilder as crafttweaker.api.commands.custom.MCCommandContextBuilder);
ParameterTypeDescription
inputStringNo description provided
contextBuildercrafttweaker.api.commands.custom.MCCommandContextBuilderNo description provided

toString

Return type: String

myMCCommandNode.toString();

Operators

COMPARE

myMCCommandNode compare o as crafttweaker.api.commands.custom.MCCommandNode
ParameterTypeDescription
ocrafttweaker.api.commands.custom.MCCommandNodeNo description provided
### EQUALS
myMCCommandNode == o as Object
ParameterTypeDescription
oObjectNo description provided

Casters

Result typeIs Implicit
Stringtrue