Class MinMaxBoundsWrapped
java.lang.Object
net.minecraft.advancements.criterion.MinMaxBoundsWrapped
-
Field Summary
Modifier and TypeFieldDescriptionstatic final MinMaxBoundsWrapped
static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
private final Float
private final Float
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic MinMaxBoundsWrapped
fromReader
(com.mojang.brigadier.StringReader p_207921_0_, boolean p_207921_1_, Function<Float, Float> p_207921_2_) getMax()
getMin()
private static boolean
isAllowedNumber
(com.mojang.brigadier.StringReader p_207920_0_, boolean p_207920_1_) private static Float
optionallyFormat
(Float p_207922_0_, Function<Float, Float> p_207922_1_) private static Float
readNumber
(com.mojang.brigadier.StringReader p_207924_0_, boolean p_207924_1_)
-
Field Details
-
ANY
-
ERROR_INTS_ONLY
public static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_INTS_ONLY -
min
-
max
-
-
Constructor Details
-
MinMaxBoundsWrapped
-
-
Method Details
-
getMin
-
getMax
-
fromReader
public static MinMaxBoundsWrapped fromReader(com.mojang.brigadier.StringReader p_207921_0_, boolean p_207921_1_, Function<Float, Float> p_207921_2_) throws com.mojang.brigadier.exceptions.CommandSyntaxException- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
readNumber
@Nullable private static 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
-