Class MinMaxBounds.IntBound
java.lang.Object
net.minecraft.advancements.criterion.MinMaxBounds<Integer>
net.minecraft.advancements.criterion.MinMaxBounds.IntBound
- 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.IntBound
private final Long
private final Long
Fields inherited from class net.minecraft.advancements.criterion.MinMaxBounds
ERROR_EMPTY, ERROR_SWAPPED, max, min
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic MinMaxBounds.IntBound
atLeast
(int p_211340_0_) private static MinMaxBounds.IntBound
static MinMaxBounds.IntBound
exactly
(int p_211345_0_) static MinMaxBounds.IntBound
fromJson
(com.google.gson.JsonElement p_211344_0_) static MinMaxBounds.IntBound
fromReader
(com.mojang.brigadier.StringReader p_211342_0_) static MinMaxBounds.IntBound
fromReader
(com.mojang.brigadier.StringReader p_211341_0_, Function<Integer, Integer> p_211341_1_) boolean
matches
(int p_211339_1_) private static Long
Methods inherited from class net.minecraft.advancements.criterion.MinMaxBounds
fromJson, fromReader, getMax, getMin, isAny, serializeToJson
-
Field Details
-
ANY
-
minSq
-
maxSq
-
-
Constructor Details
-
IntBound
-
-
Method Details
-
create
private static MinMaxBounds.IntBound create(com.mojang.brigadier.StringReader p_211338_0_, @Nullable Integer p_211338_1_, @Nullable Integer p_211338_2_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
squareOpt
-
exactly
-
atLeast
-
matches
public boolean matches(int p_211339_1_) -
fromJson
-
fromReader
public static MinMaxBounds.IntBound fromReader(com.mojang.brigadier.StringReader p_211342_0_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
fromReader
public static MinMaxBounds.IntBound fromReader(com.mojang.brigadier.StringReader p_211341_0_, Function<Integer, Integer> p_211341_1_) throws com.mojang.brigadier.exceptions.CommandSyntaxException- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-