Skip to content

Class Suggestions

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

public record Suggestions : IEquatable<Suggestions>

Inheritance

objectSuggestions

Implements

IEquatable<Suggestions>

Inherited Members

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

Constructors

Suggestions(StringRange, List<Suggestion>)

public Suggestions(StringRange Range, List<Suggestion> All)

Parameters

Range StringRange

All List<Suggestion>

Properties

All

public List<Suggestion> All { get; init; }

Property Value

List<Suggestion>

Empty

public static Suggestions Empty { get; }

Property Value

Suggestions

IsEmpty

public bool IsEmpty { get; }

Property Value

bool

Range

public StringRange Range { get; init; }

Property Value

StringRange

Methods

Create(string, IEnumerable<Suggestion>)

public static Suggestions Create(string command, IEnumerable<Suggestion> suggestions)

Parameters

command string

suggestions IEnumerable<Suggestion>

Returns

Suggestions

EmptyAsync()

public static ValueTask<Suggestions> EmptyAsync()

Returns

ValueTask<Suggestions>

Merge(string, IEnumerable<Suggestions>)

public static Suggestions Merge(string command, IEnumerable<Suggestions> input)

Parameters

command string

input IEnumerable<Suggestions>

Returns

Suggestions