MCCommandDispatcher

Questa classe è stata aggiunta da una mod con ID crafttweaker. Perciò, è necessario avere questa mod installata per poter utilizzare questa funzione.

Importing the class

Potrebbe essere necessario importare il pacchetto, se si incontrano dei problemi (come castare un vettore), quindi meglio essere sicuri e aggiungere la direttiva di importazione.

crafttweaker.api.commands.custom.MCCommandDispatcher

Methods

equals

Return type: boolean

myMCCommandDispatcher.equals(o come oggetto);
ParameterTypeDescription
oObjectNessuna descrizione fornita

esegui

Return type: int

myMCCommandDispatcher.execute(parse as crafttweaker.api.commands.custom.MCParseResults);
ParameterTypeDescription
parsecrafttweaker.api.commands.custom.MCParseResultsNessuna descrizione fornita

Return type: int

myMCCommandDispatcher.execute(input as String, source as crafttweaker.api.commands.custom.MCCommandSource);
ParameterTypeDescription
inputStringNessuna descrizione fornita
sorgentecrafttweaker.api.commands.custom.MCCommandSourceNessuna descrizione fornita

trovdAmbiguità

myMCCommandDispatcher.findAmbiguities(consumer as crafttweaker.api.commands.custom.MCAmbiguityConsumer);
ParameterTypeDescription
consumatorecrafttweaker.api.commands.custom.MCAmbiguityConsumerNessuna descrizione fornita

findNode

Tipo restituito: crafttweaker.api.commands.custom.MCCommandNode

myMCCommandDispatcher.findNode(path as Collection<String>);
ParameterTypeDescription
pathRaccolta<String>Nessuna descrizione fornita

getAllUsage

Return type: String[]

myMCCommandDispatcher.getAllUsage(node as crafttweaker.api.commands.custom.MCCommandNode, source as crafttweaker.api.commands.custom.MCCommandSource, restricted as boolean);
ParameterTypeDescription
nodocrafttweaker.api.commands.custom.MCCommandNodeNessuna descrizione fornita
sorgentecrafttweaker.api.commands.custom.MCCommandSourceNessuna descrizione fornita
restrictedbooleanNessuna descrizione fornita

getCompletionSuggestions

Tipo restituito: crafttweaker.api.commands.custom.MCSuggestions

myMCCommandDispatcher.getCompletionSuggestions(parse as crafttweaker.api.commands.custom.MCParseResults);
ParameterTypeDescription
parsecrafttweaker.api.commands.custom.MCParseResultsNessuna descrizione fornita

Tipo restituito: crafttweaker.api.commands.custom.MCSuggestions

myMCCommandDispatcher.getCompletionSuggestions(parse as crafttweaker.api.commands.custom.MCParseResults, cursor as int);
ParameterTypeDescription
parsecrafttweaker.api.commands.custom.MCParseResultsNessuna descrizione fornita
cursorintNessuna descrizione fornita

getPath

Tipo di ritorno: Collezione<String>

myMCCommandDispatcher.getPath(target as crafttweaker.api.commands.custom.MCCommandNode);
ParameterTypeDescription
targetcrafttweaker.api.commands.custom.MCCommandNodeNessuna descrizione fornita

getRoot

Return type: crafttweaker.api.commands.custom.MCRootCommandNode

myMCCommandDispatcher.getRoot();

getSmartUsage

Return type: String[crafttweaker.api.commands.custom.MCCommandNode]

myMCCommandDispatcher.getSmartUsage(node as crafttweaker.api.commands.custom.MCCommandNode, source as crafttweaker.api.commands.custom.MCCommandSource);
ParameterTypeDescription
nodocrafttweaker.api.commands.custom.MCCommandNodeNessuna descrizione fornita
sorgentecrafttweaker.api.commands.custom.MCCommandSourceNessuna descrizione fornita

hashCode

Return type: int

myMCCommandDispatcher.hashCode();

parse

Return type: crafttweaker.api.commands.custom.MCParseResults

myMCCommandDispatcher.parse(command as String, source as crafttweaker.api.commands.custom.MCCommandSource);
ParameterTypeDescription
commandStringNessuna descrizione fornita
sorgentecrafttweaker.api.commands.custom.MCCommandSourceNessuna descrizione fornita

registrati

Tipo restituito: crafttweaker.api.commands.custom.MCLiteralCommandNode

myMCCommandDispatcher.register(command as crafttweaker.api.commands.custom.MCLiteralArgumentBuilder);
ParameterTypeDescription
commandcrafttweaker.api.commands.custom.MCLiteralArgumentBuilderNessuna descrizione fornita

setConsumer

myMCCommandDispatcher.setConsumer(consumer as crafttweaker.api.commands.custom.MCResultConsumer);
ParameterTypeDescription
consumatorecrafttweaker.api.commands.custom.MCResultConsumerNessuna descrizione fornita

toString

Return type: String

myMCCommandDispatcher.toString();

Operators

EQUALS

myMCCommandDispatcher == o as Object
ParameterTypeDescription
oObjectNessuna descrizione fornita

Caster

Tipo RisultatoImplicito
Stringtrue