Class MinMaxBounds.Doubles
java.lang.Object
net.minecraft.advancements.critereon.MinMaxBounds<Double>
net.minecraft.advancements.critereon.MinMaxBounds.Doubles
- Enclosing class:
- MinMaxBounds<T extends Number>
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.advancements.critereon.MinMaxBounds
MinMaxBounds.BoundsFactory<T extends Number,
R extends MinMaxBounds<T>>, MinMaxBounds.BoundsFromReaderFactory<T extends Number, R extends MinMaxBounds<T>>, MinMaxBounds.Doubles, MinMaxBounds.Ints -
Field Summary
Modifier and TypeFieldDescriptionstatic final MinMaxBounds.Doubles
private final Double
private final Double
Fields inherited from class net.minecraft.advancements.critereon.MinMaxBounds
ERROR_EMPTY, ERROR_SWAPPED, max, min
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic MinMaxBounds.Doubles
atLeast
(double p_154805_) static MinMaxBounds.Doubles
atMost
(double p_154809_) static MinMaxBounds.Doubles
between
(double p_154789_, double p_154790_) private static MinMaxBounds.Doubles
static MinMaxBounds.Doubles
exactly
(double p_154787_) static MinMaxBounds.Doubles
fromJson
(com.google.gson.JsonElement p_154792_) static MinMaxBounds.Doubles
fromReader
(com.mojang.brigadier.StringReader p_154794_) static MinMaxBounds.Doubles
fromReader
(com.mojang.brigadier.StringReader p_154800_, Function<Double, Double> p_154801_) boolean
matches
(double p_154811_) boolean
matchesSqr
(double p_154813_) private static Double
Methods inherited from class net.minecraft.advancements.critereon.MinMaxBounds
fromJson, fromReader, getMax, getMin, isAny, serializeToJson
-
Field Details
-
ANY
-
minSq
-
maxSq
-
-
Constructor Details
-
Doubles
-
-
Method Details
-
create
private static MinMaxBounds.Doubles create(com.mojang.brigadier.StringReader p_154796_, @Nullable Double p_154797_, @Nullable Double p_154798_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
squareOpt
-
exactly
-
between
-
atLeast
-
atMost
-
matches
public boolean matches(double p_154811_) -
matchesSqr
public boolean matchesSqr(double p_154813_) -
fromJson
-
fromReader
public static MinMaxBounds.Doubles fromReader(com.mojang.brigadier.StringReader p_154794_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
fromReader
public static MinMaxBounds.Doubles fromReader(com.mojang.brigadier.StringReader p_154800_, Function<Double, Double> p_154801_) throws com.mojang.brigadier.exceptions.CommandSyntaxException- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-