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