Class CommandContext<S>
java.lang.Object
com.mojang.brigadier.context.CommandContext<S>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Map<String, ParsedArgument<S, ?>> private final CommandContext<S> Executable part of command.private final booleanSpecial modifier for running this context and children.private final Stringprivate final RedirectModifier<S> Modifier of source.private final List<ParsedCommandNode<S>> private final StringRangeprivate final CommandNode<S> private final S -
Constructor Summary
ConstructorsConstructorDescriptionCommandContext(S source, String input, Map<String, ParsedArgument<S, ?>> arguments, Command<S> command, CommandNode<S> rootNode, List<ParsedCommandNode<S>> nodes, StringRange range, CommandContext<S> child, RedirectModifier<S> modifier, boolean forks) -
Method Summary
-
Field Details
-
PRIMITIVE_TO_WRAPPER
-
source
-
input
-
command
-
arguments
-
rootNode
-
nodes
-
range
-
child
-
modifier
Modifier of source. Will be run only when context has children (i.e. is not last in chain). -
forks
-
-
Constructor Details
-
CommandContext
public CommandContext(S source, String input, Map<String, ParsedArgument<S, ?>> arguments, Command<S> command, CommandNode<S> rootNode, List<ParsedCommandNode<S>> nodes, StringRange range, CommandContext<S> child, RedirectModifier<S> modifier, boolean forks)
-
-
Method Details
-
copyFor
-
getChild
-
getLastChild
-
getCommand
-
getSource
-
getArgument
-
equals
-
hashCode
-
getRedirectModifier
-
getRange
-
getInput
-
getRootNode
-
getNodes
-
hasNodes
public boolean hasNodes() -
isForked
public boolean isForked()
-