Class CommandContextBuilder
Namespace: Void.Minecraft.Commands.Brigadier.Context
Assembly: Void.Minecraft.dll
public class CommandContextBuilderInheritance
object ← CommandContextBuilder
Inherited Members
object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()
Constructors
CommandContextBuilder(CommandDispatcher, ICommandSource, CommandNode, int)
public CommandContextBuilder(CommandDispatcher dispatcher, ICommandSource source, CommandNode rootNode, int start)Parameters
dispatcher CommandDispatcher
source ICommandSource
rootNode CommandNode
start int
Properties
Arguments
public Dictionary<string, IParsedArgument> Arguments { get; }Property Value
Dictionary<string, IParsedArgument>
Child
public CommandContextBuilder? Child { get; set; }Property Value
Command
public CommandExecutor? Command { get; set; }Property Value
Dispatcher
public CommandDispatcher Dispatcher { get; set; }Property Value
IsFork
public bool IsFork { get; set; }Property Value
Nodes
public List<ParsedCommandNode> Nodes { get; }Property Value
Range
public StringRange Range { get; set; }Property Value
RedirectModifier
public RedirectModifier? RedirectModifier { get; set; }Property Value
RootNode
public CommandNode RootNode { get; set; }Property Value
Source
public ICommandSource Source { get; set; }Property Value
Start
public int Start { get; set; }Property Value
Methods
Build(string)
public CommandContext Build(string input)Parameters
input string
Returns
BuildSuggestions(int)
public SuggestionContext BuildSuggestions(int cursor)Parameters
cursor int
Returns
Copy()
public CommandContextBuilder Copy()Returns
GetLastChild()
public CommandContextBuilder GetLastChild()Returns
WithArgument(string, ParsedArgument)
public CommandContextBuilder WithArgument(string name, ParsedArgument argument)Parameters
name string
argument ParsedArgument
Returns
WithChild(CommandContextBuilder)
public CommandContextBuilder WithChild(CommandContextBuilder child)Parameters
child CommandContextBuilder
Returns
WithExecutor(CommandExecutor?)
public CommandContextBuilder WithExecutor(CommandExecutor? command)Parameters
command CommandExecutor?
Returns
WithNode(CommandNode, StringRange)
public CommandContextBuilder WithNode(CommandNode node, StringRange range)Parameters
node CommandNode
range StringRange
Returns
WithSource(ICommandSource)
public CommandContextBuilder WithSource(ICommandSource source)Parameters
source ICommandSource