public static class NumberRange.FloatRange extends NumberRange<Float>
NumberRange.CommandFactory<T extends Number,R extends NumberRange<T>>, NumberRange.Factory<T extends Number,R extends NumberRange<T>>, NumberRange.FloatRange, NumberRange.IntRange
Modifier and Type | Field and Description |
---|---|
static NumberRange.FloatRange |
ANY |
private Double |
squaredMax |
private Double |
squaredMin |
EXCEPTION_EMPTY, EXCEPTION_SWAPPED, max, min
Modifier | Constructor and Description |
---|---|
private |
FloatRange(Float min,
Float max) |
Modifier and Type | Method and Description |
---|---|
static NumberRange.FloatRange |
atLeast(float value) |
private static NumberRange.FloatRange |
create(com.mojang.brigadier.StringReader reader,
Float min,
Float max) |
static NumberRange.FloatRange |
fromJson(JsonElement element) |
static NumberRange.FloatRange |
parse(com.mojang.brigadier.StringReader reader) |
static NumberRange.FloatRange |
parse(com.mojang.brigadier.StringReader reader,
Function<Float,Float> mapper) |
private static Double |
square(Float value) |
boolean |
test(float value) |
boolean |
testSqrt(double value) |
public static final NumberRange.FloatRange ANY
private final Double squaredMin
private final Double squaredMax
private static NumberRange.FloatRange create(com.mojang.brigadier.StringReader reader, @Nullable Float min, @Nullable Float max) throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxException
public static NumberRange.FloatRange atLeast(float value)
public boolean test(float value)
public boolean testSqrt(double value)
public static NumberRange.FloatRange fromJson(@Nullable JsonElement element)
public static NumberRange.FloatRange parse(com.mojang.brigadier.StringReader reader) throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxException
public static NumberRange.FloatRange parse(com.mojang.brigadier.StringReader reader, Function<Float,Float> mapper)