Skip to content

Class SuggestionContext

Namespace: Void.Minecraft.Commands.Brigadier.Context
Assembly: Void.Minecraft.dll

Identifies the parent node and replacement start used to build completions.

public record SuggestionContext : IEquatable<SuggestionContext>

Inheritance

objectSuggestionContext

Implements

IEquatable<SuggestionContext>

Inherited Members

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()

Constructors

SuggestionContext(CommandNode, int)

Identifies the parent node and replacement start used to build completions.

public SuggestionContext(CommandNode Parent, int Start)

Parameters

Parent CommandNode

The node whose children may provide suggestions.

Start int

The cursor at which the suggested token begins.

Properties

Parent

The node whose children may provide suggestions.

public CommandNode Parent { get; init; }

Property Value

CommandNode

Start

The cursor at which the suggested token begins.

public int Start { get; init; }

Property Value

int