Class MinMaxBoundsWrapped
- java.lang.Object
-
- net.minecraft.advancements.criterion.MinMaxBoundsWrapped
-
public class MinMaxBoundsWrapped extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static MinMaxBoundsWrapped
ANY
static com.mojang.brigadier.exceptions.SimpleCommandExceptionType
ERROR_INTS_ONLY
private java.lang.Float
max
private java.lang.Float
min
-
Constructor Summary
Constructors Constructor Description MinMaxBoundsWrapped(java.lang.Float p_i49328_1_, java.lang.Float p_i49328_2_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MinMaxBoundsWrapped
fromReader(com.mojang.brigadier.StringReader p_207921_0_, boolean p_207921_1_, java.util.function.Function<java.lang.Float,java.lang.Float> p_207921_2_)
java.lang.Float
getMax()
java.lang.Float
getMin()
private static boolean
isAllowedNumber(com.mojang.brigadier.StringReader p_207920_0_, boolean p_207920_1_)
private static java.lang.Float
optionallyFormat(java.lang.Float p_207922_0_, java.util.function.Function<java.lang.Float,java.lang.Float> p_207922_1_)
private static java.lang.Float
readNumber(com.mojang.brigadier.StringReader p_207924_0_, boolean p_207924_1_)
-
-
-
Field Detail
-
ANY
public static final MinMaxBoundsWrapped ANY
-
ERROR_INTS_ONLY
public static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_INTS_ONLY
-
min
private final java.lang.Float min
-
max
private final java.lang.Float max
-
-
Method Detail
-
getMin
@Nullable public java.lang.Float getMin()
-
getMax
@Nullable public java.lang.Float getMax()
-
fromReader
public static MinMaxBoundsWrapped fromReader(com.mojang.brigadier.StringReader p_207921_0_, boolean p_207921_1_, java.util.function.Function<java.lang.Float,java.lang.Float> p_207921_2_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
readNumber
@Nullable private static java.lang.Float readNumber(com.mojang.brigadier.StringReader p_207924_0_, boolean p_207924_1_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
isAllowedNumber
private static boolean isAllowedNumber(com.mojang.brigadier.StringReader p_207920_0_, boolean p_207920_1_)
-
optionallyFormat
@Nullable private static java.lang.Float optionallyFormat(@Nullable java.lang.Float p_207922_0_, java.util.function.Function<java.lang.Float,java.lang.Float> p_207922_1_)
-
-