Skip to content

Class FloatArgumentType

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

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

Inheritance

objectFloatArgumentType

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

IEnumerable<string>

Maximum

public required float Maximum { get; init; }

Property Value

float

Minimum

public required float Minimum { get; init; }

Property Value

float

Methods

FloatArgument()

public static FloatArgumentType FloatArgument()

Returns

FloatArgumentType

FloatArgument(float)

public static FloatArgumentType FloatArgument(float min)

Parameters

min float

Returns

FloatArgumentType

FloatArgument(float, float)

public static FloatArgumentType FloatArgument(float min, float max)

Parameters

min float

max float

Returns

FloatArgumentType

GetFloat(CommandContext, string)

public static float GetFloat(CommandContext context, string name)

Parameters

context CommandContext

name string

Returns

float

Parse(StringReader)

public IArgumentValue Parse(StringReader reader)

Parameters

reader StringReader

Returns

IArgumentValue