Class LongArgumentType
Namespace: Void.Minecraft.Commands.Brigadier.ArgumentTypes
Assembly: Void.Minecraft.dll
public record LongArgumentType : IArgumentType, IAnyArgumentType, IEquatable<LongArgumentType>Inheritance
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
Maximum
public required long Maximum { get; init; }Property Value
Minimum
public required long Minimum { get; init; }Property Value
Methods
GetLong(CommandContext, string)
public static long GetLong(CommandContext context, string name)Parameters
context CommandContext
name string
Returns
LongArgument()
public static LongArgumentType LongArgument()Returns
LongArgument(long)
public static LongArgumentType LongArgument(long min)Parameters
min long
Returns
LongArgument(long, long)
public static LongArgumentType LongArgument(long min, long max)Parameters
min long
max long
Returns
Parse(StringReader)
public IArgumentValue Parse(StringReader reader)Parameters
reader StringReader