public class FloatRangeArgument extends Object
Modifier and Type | Field and Description |
---|---|
static FloatRangeArgument |
ANY |
private Float |
max |
private Float |
min |
static com.mojang.brigadier.exceptions.SimpleCommandExceptionType |
ONLY_INTS_EXCEPTION |
Constructor and Description |
---|
FloatRangeArgument(Float float2,
Float float3) |
Modifier and Type | Method and Description |
---|---|
Float |
getMax() |
Float |
getMin() |
private static Float |
mapFloat(Float float2,
Function<Float,Float> function) |
static FloatRangeArgument |
parse(com.mojang.brigadier.StringReader reader,
boolean allowFloats,
Function<Float,Float> transform) |
private static Float |
parseFloat(com.mojang.brigadier.StringReader reader,
boolean allowFloats) |
private static boolean |
peekDigit(com.mojang.brigadier.StringReader reader,
boolean allowFloats) |
public static final FloatRangeArgument ANY
public static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ONLY_INTS_EXCEPTION
private final Float min
private final Float max
public static FloatRangeArgument parse(com.mojang.brigadier.StringReader reader, boolean allowFloats, Function<Float,Float> transform)
@Nullable private static Float parseFloat(com.mojang.brigadier.StringReader reader, boolean allowFloats) throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxException
private static boolean peekDigit(com.mojang.brigadier.StringReader reader, boolean allowFloats)