Class MinMaxBounds.FloatBound
java.lang.Object
net.minecraft.advancements.criterion.MinMaxBounds<Float>
net.minecraft.advancements.criterion.MinMaxBounds.FloatBound
- Enclosing class:
- MinMaxBounds<T extends Number>
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.advancements.criterion.MinMaxBounds
MinMaxBounds.FloatBound, MinMaxBounds.IBoundFactory<T extends Number,
R extends MinMaxBounds<T>>, MinMaxBounds.IBoundReader<T extends Number, R extends MinMaxBounds<T>>, MinMaxBounds.IntBound -
Field Summary
Modifier and TypeFieldDescriptionstatic final MinMaxBounds.FloatBound
private final Double
private final Double
Fields inherited from class net.minecraft.advancements.criterion.MinMaxBounds
ERROR_EMPTY, ERROR_SWAPPED, max, min
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic MinMaxBounds.FloatBound
atLeast
(float p_211355_0_) private static MinMaxBounds.FloatBound
static MinMaxBounds.FloatBound
fromJson
(com.google.gson.JsonElement p_211356_0_) static MinMaxBounds.FloatBound
fromReader
(com.mojang.brigadier.StringReader p_211357_0_) static MinMaxBounds.FloatBound
fromReader
(com.mojang.brigadier.StringReader p_211353_0_, Function<Float, Float> p_211353_1_) boolean
matches
(float p_211354_1_) boolean
matchesSqr
(double p_211351_1_) private static Double
Methods inherited from class net.minecraft.advancements.criterion.MinMaxBounds
fromJson, fromReader, getMax, getMin, isAny, serializeToJson
-
Field Details
-
ANY
-
minSq
-
maxSq
-
-
Constructor Details
-
FloatBound
-
-
Method Details
-
create
private static MinMaxBounds.FloatBound create(com.mojang.brigadier.StringReader p_211352_0_, @Nullable Float p_211352_1_, @Nullable Float p_211352_2_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
squareOpt
-
atLeast
-
matches
public boolean matches(float p_211354_1_) -
matchesSqr
public boolean matchesSqr(double p_211351_1_) -
fromJson
-
fromReader
public static MinMaxBounds.FloatBound fromReader(com.mojang.brigadier.StringReader p_211357_0_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
fromReader
public static MinMaxBounds.FloatBound fromReader(com.mojang.brigadier.StringReader p_211353_0_, Function<Float, Float> p_211353_1_) throws com.mojang.brigadier.exceptions.CommandSyntaxException- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-