Class MinMaxBounds.FloatBound
- java.lang.Object
-
- net.minecraft.advancements.criterion.MinMaxBounds<java.lang.Float>
-
- net.minecraft.advancements.criterion.MinMaxBounds.FloatBound
-
- Enclosing class:
- MinMaxBounds<T extends java.lang.Number>
public static class MinMaxBounds.FloatBound extends MinMaxBounds<java.lang.Float>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.minecraft.advancements.criterion.MinMaxBounds
MinMaxBounds.FloatBound, MinMaxBounds.IBoundFactory<T extends java.lang.Number,R extends MinMaxBounds<T>>, MinMaxBounds.IBoundReader<T extends java.lang.Number,R extends MinMaxBounds<T>>, MinMaxBounds.IntBound
-
-
Field Summary
Fields Modifier and Type Field Description static MinMaxBounds.FloatBound
ANY
private java.lang.Double
maxSq
private java.lang.Double
minSq
-
Fields inherited from class net.minecraft.advancements.criterion.MinMaxBounds
ERROR_EMPTY, ERROR_SWAPPED, max, min
-
-
Constructor Summary
Constructors Modifier Constructor Description private
FloatBound(java.lang.Float p_i49717_1_, java.lang.Float p_i49717_2_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MinMaxBounds.FloatBound
atLeast(float p_211355_0_)
private static MinMaxBounds.FloatBound
create(com.mojang.brigadier.StringReader p_211352_0_, java.lang.Float p_211352_1_, java.lang.Float p_211352_2_)
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_, java.util.function.Function<java.lang.Float,java.lang.Float> p_211353_1_)
boolean
matches(float p_211354_1_)
boolean
matchesSqr(double p_211351_1_)
private static java.lang.Double
squareOpt(java.lang.Float p_211350_0_)
-
Methods inherited from class net.minecraft.advancements.criterion.MinMaxBounds
fromJson, fromReader, getMax, getMin, isAny, serializeToJson
-
-
-
-
Field Detail
-
ANY
public static final MinMaxBounds.FloatBound ANY
-
minSq
private final java.lang.Double minSq
-
maxSq
private final java.lang.Double maxSq
-
-
Method Detail
-
create
private static MinMaxBounds.FloatBound create(com.mojang.brigadier.StringReader p_211352_0_, @Nullable java.lang.Float p_211352_1_, @Nullable java.lang.Float p_211352_2_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
squareOpt
@Nullable private static java.lang.Double squareOpt(@Nullable java.lang.Float p_211350_0_)
-
atLeast
public static MinMaxBounds.FloatBound atLeast(float p_211355_0_)
-
matches
public boolean matches(float p_211354_1_)
-
matchesSqr
public boolean matchesSqr(double p_211351_1_)
-
fromJson
public static MinMaxBounds.FloatBound fromJson(@Nullable com.google.gson.JsonElement p_211356_0_)
-
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_, java.util.function.Function<java.lang.Float,java.lang.Float> p_211353_1_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
-