Skip to content

Class IntegerSuggestion

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

Represents an integer completion formatted with the current culture.

public record IntegerSuggestion : Suggestion, IComparable<Suggestion>, IEquatable<Suggestion>, IEquatable<IntegerSuggestion>

Inheritance

objectSuggestionIntegerSuggestion

Implements

IComparable<Suggestion>, IEquatable<Suggestion>, IEquatable<IntegerSuggestion>

Inherited Members

Suggestion.Range, Suggestion.Text, Suggestion.Tooltip, Suggestion.Apply(string), Suggestion.CompareTo(Suggestion?), Suggestion.Expand(string, StringRange), object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()

Constructors

IntegerSuggestion(StringRange, int, IMessage?)

Represents an integer completion formatted with the current culture.

public IntegerSuggestion(StringRange Range, int Value, IMessage? Tooltip = null)

Parameters

Range StringRange

The replacement range.

Value int

The suggested integer.

Tooltip IMessage?

The optional tooltip.

Properties

Value

The suggested integer.

public int Value { get; init; }

Property Value

int