com.mojang.brigadier.context

public class CommandContextBuilder<S>

com.mojang.brigadier.context.CommandContextBuilder

Field summary

Modifier and TypeField
private final Map<String, ParsedArgument<S, ?>>
arguments
private final CommandNode<S>
rootNode
private final List<ParsedCommandNode<S>>
nodes
private final CommandDispatcher<S>
dispatcher
private S
source
private Command<S>
command
private CommandContextBuilder<S>
child
private StringRange
range
private RedirectModifier<S>
modifier
private boolean
forks

Constructor summary

ModifierConstructor
public (CommandDispatcher<S> arg0, S arg1, CommandNode<S> arg2, int arg3)

Method summary

Modifier and TypeMethod
public CommandContextBuilder<S>
withSource(S arg0)
public S
getSource()
public CommandNode<S>
getRootNode()
public CommandContextBuilder<S>
withArgument(String arg0, ParsedArgument<S, ?> arg1)
public Map<String, ParsedArgument<S, ?>>
getArguments()
public CommandContextBuilder<S>
withCommand(Command<S> arg0)
public CommandContextBuilder<S>
withNode(CommandNode<S> arg0, StringRange arg1)
public CommandContextBuilder<S>
copy()
public CommandContextBuilder<S>
withChild(CommandContextBuilder<S> arg0)
public CommandContextBuilder<S>
getChild()
public CommandContextBuilder<S>
getLastChild()
public Command<S>
getCommand()
public List<ParsedCommandNode<S>>
getNodes()
public CommandContext<S>
build(String arg0)
public CommandDispatcher<S>
getDispatcher()
public StringRange
getRange()
public SuggestionContext<S>
findSuggestionContext(int arg0)