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