MCArgumentCommandNode

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

Implemented Interfaces

MCArgumentCommandNode implémente les interfaces suivantes. That means any method available to them can also be used on this class.

Methods

addChild

myMCArgumentCommandNode.addChild(node as crafttweaker.api.commands.custom.MCCommandNode);
ParameterTypeDescription
Nœudcrafttweaker.api.commands.custom.MCCommandNodeNo description provided

canUse

Return type: boolean

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

createBuilder

Type de retour : crafttweaker.api.commands.custom.MCRequiredArgumentBuilder

myMCArgumentCommandNode.createBuilder();

equals

Return type: boolean

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

trouver des Ambiguités

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

getChild

Type de retour : crafttweaker.api.commands.custom.MCCommandNode

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

getChildren

Type de retour : Collection<crafttweaker.api.commands.custom.MCCommandNode>

myMCArgumentCommandNode.getChildren();

getCommand

Type de retour : crafttweaker.api.commands.custom.MCCommand

myMCArgumentCommandNode.getCommand();

getCustomSuggestions

Type de retour : crafttweaker.api.commands.custom.MCSuggestionProvider

myMCArgumentCommandNode.getCustomSuggestions();

getExamples

Type de retour : Collection<String>

myMCArgumentCommandNode.getExamples();

getName

Return type: String

myMCArgumentCommandNode.getName();

getRedirect

Type de retour : crafttweaker.api.commands.custom.MCCommandNode

myMCArgumentCommandNode.getRedirect();

Obtenir le modificateur de redirection

Type de retour : crafttweaker.api.commands.custom.MCRedirectModifier

myMCArgumentCommandNode.getRedirectModifier();

getRelevantNodes

Type de retour : Collection<crafttweaker.api.commands.custom.MCCommandNode>

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

Obtenir les conditions requises

Type de retour : function.Predicate<crafttweaker.api.commands.custom.MCCommandSource>

myMCArgumentCommandNode.getRequirement();

getUsageText

Return type: String

myMCArgumentCommandNode.getUsageText();

hashCode

Return type: int

myMCArgumentCommandNode.hashCode();

isFork

Return type: boolean

myMCArgumentCommandNode.isFork();

listSuggestions

Type de retour : crafttweaker.api.commands.custom.MCSuggestions

myMCArgumentCommandNode.listSuggestions(context as crafttweaker.api.commands.custom.MCCommandContext, builder as crafttweaker.api.commands.custom.MCSuggestionsBuilder);
ParameterTypeDescription
Contextecrafttweaker.api.commands.custom.MCCommandContextNo description provided
constructeurcrafttweaker.api.commands.custom.MCSuggestionsBuilderNo description provided

parse

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

myMCArgumentCommandNode.toString();

Operators

COMPARE

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

Casters

Result typeIs Implicit
Stringtrue