Class CommandContextBuilder<S>
java.lang.Object
com.mojang.brigadier.context.CommandContextBuilder<S>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Map<String, ParsedArgument<S, ?>> private CommandContextBuilder<S> private final CommandDispatcher<S> private booleanprivate RedirectModifier<S> private final List<ParsedCommandNode<S>> private StringRangeprivate final CommandNode<S> private S -
Constructor Summary
ConstructorsConstructorDescriptionCommandContextBuilder(CommandDispatcher<S> dispatcher, S source, CommandNode<S> rootNode, int start) -
Method Summary
Modifier and TypeMethodDescriptioncopy()findSuggestionContext(int cursor) Map<String, ParsedArgument<S, ?>> getChild()getNodes()getRange()withArgument(String name, ParsedArgument<S, ?> argument) withChild(CommandContextBuilder<S> child) withCommand(Command<S> command) withNode(CommandNode<S> node, StringRange range) withSource(S source)
-
Field Details
-
arguments
-
rootNode
-
nodes
-
dispatcher
-
source
-
command
-
child
-
range
-
modifier
-
forks
private boolean forks
-
-
Constructor Details
-
CommandContextBuilder
public CommandContextBuilder(CommandDispatcher<S> dispatcher, S source, CommandNode<S> rootNode, int start)
-
-
Method Details
-
withSource
-
getSource
-
getRootNode
-
withArgument
-
getArguments
-
withCommand
-
withNode
-
copy
-
withChild
-
getChild
-
getLastChild
-
getCommand
-
getNodes
-
build
-
getDispatcher
-
getRange
-
findSuggestionContext
-