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 Map<CommandNode<S>, StringRange>
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, int arg2)

Method summary

Modifier and TypeMethod
public CommandContextBuilder<S>
withSource(S arg0)
public S
getSource()
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 Map<CommandNode<S>, StringRange>
getNodes()
public CommandContext<S>
build(String arg0)
public CommandDispatcher<S>
getDispatcher()
public StringRange
getRange()