Skip to content

Class LongArgumentType

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

public record LongArgumentType : IArgumentType, IAnyArgumentType, IEquatable<LongArgumentType>

Inheritance

objectLongArgumentType

Implements

IArgumentType, IAnyArgumentType, IEquatable<LongArgumentType>

Inherited Members

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

Properties

Examples

public IEnumerable<string> Examples { get; }

Property Value

IEnumerable<string>

Maximum

public required long Maximum { get; init; }

Property Value

long

Minimum

public required long Minimum { get; init; }

Property Value

long

Methods

GetLong(CommandContext, string)

public static long GetLong(CommandContext context, string name)

Parameters

context CommandContext

name string

Returns

long

LongArgument()

public static LongArgumentType LongArgument()

Returns

LongArgumentType

LongArgument(long)

public static LongArgumentType LongArgument(long min)

Parameters

min long

Returns

LongArgumentType

LongArgument(long, long)

public static LongArgumentType LongArgument(long min, long max)

Parameters

min long

max long

Returns

LongArgumentType

Parse(StringReader)

public IArgumentValue Parse(StringReader reader)

Parameters

reader StringReader

Returns

IArgumentValue