public static class MinMaxBounds.IntBound extends MinMaxBounds<java.lang.Integer>
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.Long |
maxSquared |
private java.lang.Long |
minSquared |
static MinMaxBounds.IntBound |
UNBOUNDED |
ERROR_EMPTY, ERROR_SWAPPED, max, min
Modifier | Constructor and Description |
---|---|
private |
IntBound(java.lang.Integer p_i49716_1_,
java.lang.Integer p_i49716_2_) |
Modifier and Type | Method and Description |
---|---|
static MinMaxBounds.IntBound |
atLeast(int p_211340_0_) |
private static MinMaxBounds.IntBound |
create(com.mojang.brigadier.StringReader p_211338_0_,
java.lang.Integer p_211338_1_,
java.lang.Integer p_211338_2_) |
static MinMaxBounds.IntBound |
exactly(int p_211345_0_) |
static MinMaxBounds.IntBound |
fromJson(com.google.gson.JsonElement p_211344_0_) |
static MinMaxBounds.IntBound |
fromReader(com.mojang.brigadier.StringReader p_211342_0_) |
static MinMaxBounds.IntBound |
fromReader(com.mojang.brigadier.StringReader p_211341_0_,
java.util.function.Function<java.lang.Integer,java.lang.Integer> p_211341_1_) |
private static java.lang.Long |
square(java.lang.Integer p_211343_0_) |
boolean |
test(int p_211339_1_) |
fromJson, fromReader, getMax, getMin, isUnbounded, serialize
public static final MinMaxBounds.IntBound UNBOUNDED
private final java.lang.Long minSquared
private final java.lang.Long maxSquared
private IntBound(@Nullable java.lang.Integer p_i49716_1_, @Nullable java.lang.Integer p_i49716_2_)
private static MinMaxBounds.IntBound create(com.mojang.brigadier.StringReader p_211338_0_, @Nullable java.lang.Integer p_211338_1_, @Nullable java.lang.Integer p_211338_2_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxException
@Nullable private static java.lang.Long square(@Nullable java.lang.Integer p_211343_0_)
public static MinMaxBounds.IntBound exactly(int p_211345_0_)
public static MinMaxBounds.IntBound atLeast(int p_211340_0_)
public boolean test(int p_211339_1_)
public static MinMaxBounds.IntBound fromJson(@Nullable com.google.gson.JsonElement p_211344_0_)
public static MinMaxBounds.IntBound fromReader(com.mojang.brigadier.StringReader p_211342_0_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxException
public static MinMaxBounds.IntBound fromReader(com.mojang.brigadier.StringReader p_211341_0_, java.util.function.Function<java.lang.Integer,java.lang.Integer> p_211341_1_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
com.mojang.brigadier.exceptions.CommandSyntaxException