MCCommandDispatcher

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.

Diese Klasse importieren

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

Methoden

equals

Return type: boolean

myMCCommandDispatcher.equals(o als Objekt);
ParameterTypeBeschreibung
oObjectNo description provided

ausführen

Return type: int

myMCCommandDispatcher.execute(parse als crafttweaker.api.commands.custom.MCParseResults);
ParameterTypeBeschreibung
parsecrafttweaker.api.commands.custom.MCParseResultsNo description provided

Return type: int

myMCCommandDispatcher.execute(Eingabe als String, Quelle als crafttweaker.api.commands.custom.MCCommandSource);
ParameterTypeBeschreibung
inputStringNo description provided
quellcrafttweaker.api.commands.custom.MCCommandSourceNo description provided

findAmbiguitäten

myMCCommandDispatcher.findAmbiguities(consumer as crafttweaker.api.commands.custom.MCAmbiguityConsumer);
ParameterTypeBeschreibung
konsumentencrafttweaker.api.commands.custom.MCAmbiguityConsumerNo description provided

findnode

Rückgabetyp: craftweaker.api.commands.custom.MCCommandNode

myMCCommandDispatcher.findNode(path as Collection<String>);
ParameterTypeBeschreibung
pathSammlung<String>No description provided

getAllNutzung

Return type: String[]

myMCCommandDispatcher.getAllUsage(node as crafttweaker.api.commands.custom.MCCommandNode, source as crafttweaker.api.commands.custom.MCCommandSource, restricted as boolean);
ParameterTypeBeschreibung
knotencrafttweaker.api.commands.custom.MCCommandNodeNo description provided
quellcrafttweaker.api.commands.custom.MCCommandSourceNo description provided
restrictedbooleanNo description provided

getCompletionSuggestions

Rückgabetyp: craftweaker.api.commands.custom.MCSuggestions

myMCCommandDispatcher.getCompletionSuggestions(parse as crafttweaker.api.commands.custom.MCParseResults);
ParameterTypeBeschreibung
parsecrafttweaker.api.commands.custom.MCParseResultsNo description provided

Rückgabetyp: craftweaker.api.commands.custom.MCSuggestions

myMCCommandDispatcher.getCompletionSuggestions(parse as crafttweaker.api.commands.custom.MCParseResults, cursor as int);
ParameterTypeBeschreibung
parsecrafttweaker.api.commands.custom.MCParseResultsNo description provided
cursorintNo description provided

getPath

Rückgabetyp: Sammlung<String>

myMCCommandDispatcher.getPath(target as crafttweaker.api.commands.custom.MCCommandNode);
ParameterTypeBeschreibung
targetcrafttweaker.api.commands.custom.MCCommandNodeNo description provided

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);
ParameterTypeBeschreibung
knotencrafttweaker.api.commands.custom.MCCommandNodeNo description provided
quellcrafttweaker.api.commands.custom.MCCommandSourceNo description provided

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);
ParameterTypeBeschreibung
commandStringNo description provided
quellcrafttweaker.api.commands.custom.MCCommandSourceNo description provided

registrieren

Rückgabetyp: craftweaker.api.commands.custom.MCLiteralCommandNode

myMCCommandDispatcher.register(command as crafttweaker.api.commands.custom.MCLiteralArgumentBuilder);
ParameterTypeBeschreibung
commandcrafttweaker.api.commands.custom.MCLiteralArgumentBuilderNo description provided

setConsumer

myMCCommandDispatcher.setConsumer(consumer as crafttweaker.api.commands.custom.MCResultConsumer);
ParameterTypeBeschreibung
konsumentencrafttweaker.api.commands.custom.MCResultConsumerNo description provided

toString

Return type: String

myMCCommandDispatcher.toString();

Operatoren

EQUALS

myMCCommandDispatcher == o as Object
ParameterTypeBeschreibung
oObjectNo description provided

Casters

Result typeIs Implicit
Stringtrue