Skip to content

Class ParsedArgument

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

Associates a parsed argument value with its input range.

public record ParsedArgument : IParsedArgument, IEquatable<ParsedArgument>

Inheritance

objectParsedArgument

Implements

IParsedArgument, IEquatable<ParsedArgument>

Inherited Members

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

Constructors

ParsedArgument(int, int, IArgumentValue)

Associates a parsed argument value with its input range.

public ParsedArgument(int Start, int End, IArgumentValue Result)

Parameters

Start int

The inclusive start cursor.

End int

The exclusive end cursor.

Result IArgumentValue

The parsed value.

Properties

End

The exclusive end cursor.

public int End { get; init; }

Property Value

int

Range

Gets the range from through .

public StringRange Range { get; }

Property Value

StringRange

Result

The parsed value.

public IArgumentValue Result { get; init; }

Property Value

IArgumentValue

Start

The inclusive start cursor.

public int Start { get; init; }

Property Value

int