Class WrappedMinMaxBounds
java.lang.Object
net.minecraft.advancements.critereon.WrappedMinMaxBounds
-
Field Summary
Modifier and TypeFieldDescriptionstatic final WrappedMinMaxBounds
static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
private final Float
private final Float
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic WrappedMinMaxBounds
atLeast
(float p_164415_) static WrappedMinMaxBounds
atMost
(float p_164418_) static WrappedMinMaxBounds
between
(float p_164405_, float p_164406_) static WrappedMinMaxBounds
exactly
(float p_164403_) static WrappedMinMaxBounds
fromJson
(com.google.gson.JsonElement p_164408_) static WrappedMinMaxBounds
fromReader
(com.mojang.brigadier.StringReader p_164410_, boolean p_164411_) static WrappedMinMaxBounds
fromReader
(com.mojang.brigadier.StringReader p_75360_, boolean p_75361_, Function<Float, Float> p_75362_) getMax()
getMin()
private static boolean
isAllowedNumber
(com.mojang.brigadier.StringReader p_75371_, boolean p_75372_) boolean
matches
(float p_164420_) boolean
matchesSqr
(double p_164401_) private static Float
optionallyFormat
(Float p_75364_, Function<Float, Float> p_75365_) private static Float
readNumber
(com.mojang.brigadier.StringReader p_75368_, boolean p_75369_) com.google.gson.JsonElement
-
Field Details
-
ANY
-
ERROR_INTS_ONLY
public static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_INTS_ONLY -
min
-
max
-
-
Constructor Details
-
WrappedMinMaxBounds
-
-
Method Details
-
exactly
-
between
-
atLeast
-
atMost
-
matches
public boolean matches(float p_164420_) -
matchesSqr
public boolean matchesSqr(double p_164401_) -
getMin
-
getMax
-
serializeToJson
public com.google.gson.JsonElement serializeToJson() -
fromJson
-
fromReader
public static WrappedMinMaxBounds fromReader(com.mojang.brigadier.StringReader p_164410_, boolean p_164411_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
fromReader
public static WrappedMinMaxBounds fromReader(com.mojang.brigadier.StringReader p_75360_, boolean p_75361_, Function<Float, Float> p_75362_) throws com.mojang.brigadier.exceptions.CommandSyntaxException- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
readNumber
@Nullable private static Float readNumber(com.mojang.brigadier.StringReader p_75368_, boolean p_75369_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
isAllowedNumber
private static boolean isAllowedNumber(com.mojang.brigadier.StringReader p_75371_, boolean p_75372_) -
optionallyFormat
-