MCRootCommandNode

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

Implemented Interfaces

MCRootCommandNode implementa las siguientes interfaces. That means any method available to them can also be used on this class.

Methods

addChild

myMCRootCommandNode.addChild(node as crafttweaker.api.commands.custom.MCCommandNode);
ParameterTypeDescription
nodocrafttweaker.api.commands.custom.MCCommandNodeNo description provided

canUse

Return type: boolean

myMCRootCommandNode.canUse(source as crafttweaker.api.commands.custom.MCCommandSource);
ParameterTypeDescription
fuentecrafttweaker.api.commands.custom.MCCommandSourceNo description provided

createBuilder

Tipo de retorno: crafttweaker.api.commands.custom.MCArgumentBuilder

myMCRootCommandNode.createBuilder();

equals

Return type: boolean

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

encontrar ambigüedades

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

getChild

Tipo de retorno: crafttweaker.api.commands.custom.MCCommandNode

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

getChildren

Tipo de retorno: Colección<crafttweaker.api.commands.custom.MCCommandNode>

myMCRootCommandNode.getChildren();

getCommand

Tipo de retorno: crafttweaker.api.commands.custom.MCCommand

myMCRootCommandNode.getCommand();

getExamples

Tipo de retorno: Colección<String>

myMCRootCommandNode.getExamples();

getName

Return type: String

myMCRootCommandNode.getName();

getRedirect

Tipo de retorno: crafttweaker.api.commands.custom.MCCommandNode

myMCRootCommandNode.getRedirect();

getRedirectModifier

Tipo de retorno: crafttweaker.api.commands.custom.MCRedirectModifier

myMCRootCommandNode.getRedirectModifier();

getRelevantNodes

Tipo de retorno: Colección<crafttweaker.api.commands.custom.MCCommandNode>

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

getRequirement

Tipo de retorno: function.Predicate<crafttweaker.api.commands.custom.MCCommandSource>

myMCRootCommandNode.getRequirement();

getUsageText

Return type: String

myMCRootCommandNode.getUsageText();

hashCode

Return type: int

myMCRootCommandNode.hashCode();

isFork

Return type: boolean

myMCRootCommandNode.isFork();

isValidInput

Return type: boolean

myMCRootCommandNode.isValidInput(input as String);
ParameterTypeDescription
inputStringNo description provided

listSuggestions

Tipo de retorno: crafttweaker.api.commands.custom.MCSuggeries,

myMCRootCommandNode.listSuggestions(context as crafttweaker.api.commands.custom.MCCommandContext, builder as crafttweaker.api.commands.custom.MCSuggestionsBuilder);
ParameterTypeDescription
contextocrafttweaker.api.commands.custom.MCCommandContextNo description provided
constructorcrafttweaker.api.commands.custom.MCSuggestionsBuilderNo description provided

parse

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

myMCRootCommandNode.toString();

Operators

COMPARE

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

Casters

Result typeIs Implicit
Stringtrue