public static class MinMaxBounds.FloatBound extends MinMaxBounds<java.lang.Float>
MinMaxBounds.FloatBound, MinMaxBounds.IBoundFactory<T extends java.lang.Number,R extends MinMaxBounds<T>>, MinMaxBounds.IBoundReader<T extends java.lang.Number,R extends MinMaxBounds<T>>, MinMaxBounds.IntBound
Modifier and Type | Field and Description |
---|---|
private java.lang.Double |
maxSquared |
private java.lang.Double |
minSquared |
static MinMaxBounds.FloatBound |
UNBOUNDED |
ERROR_EMPTY, ERROR_SWAPPED, max, min
Modifier | Constructor and Description |
---|---|
private |
FloatBound(java.lang.Float p_i49717_1_,
java.lang.Float p_i49717_2_) |
Modifier and Type | Method and Description |
---|---|
static MinMaxBounds.FloatBound |
atLeast(float p_211355_0_) |
private static MinMaxBounds.FloatBound |
create(com.mojang.brigadier.StringReader p_211352_0_,
java.lang.Float p_211352_1_,
java.lang.Float p_211352_2_) |
static MinMaxBounds.FloatBound |
fromJson(com.google.gson.JsonElement p_211356_0_) |
static MinMaxBounds.FloatBound |
fromReader(com.mojang.brigadier.StringReader p_211357_0_) |
static MinMaxBounds.FloatBound |
fromReader(com.mojang.brigadier.StringReader p_211353_0_,
java.util.function.Function<java.lang.Float,java.lang.Float> p_211353_1_) |
private static java.lang.Double |
square(java.lang.Float p_211350_0_) |
boolean |
test(float p_211354_1_) |
boolean |
testSquared(double p_211351_1_) |
fromJson, fromReader, getMax, getMin, isUnbounded, serialize
public static final MinMaxBounds.FloatBound UNBOUNDED
private final java.lang.Double minSquared
private final java.lang.Double maxSquared
private FloatBound(@Nullable java.lang.Float p_i49717_1_, @Nullable java.lang.Float p_i49717_2_)
private static MinMaxBounds.FloatBound create(com.mojang.brigadier.StringReader p_211352_0_, @Nullable java.lang.Float p_211352_1_, @Nullable java.lang.Float p_211352_2_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxException
@Nullable private static java.lang.Double square(@Nullable java.lang.Float p_211350_0_)
public static MinMaxBounds.FloatBound atLeast(float p_211355_0_)
public boolean test(float p_211354_1_)
public boolean testSquared(double p_211351_1_)
public static MinMaxBounds.FloatBound fromJson(@Nullable com.google.gson.JsonElement p_211356_0_)
public static MinMaxBounds.FloatBound fromReader(com.mojang.brigadier.StringReader p_211357_0_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxException
public static MinMaxBounds.FloatBound fromReader(com.mojang.brigadier.StringReader p_211353_0_, java.util.function.Function<java.lang.Float,java.lang.Float> p_211353_1_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxException