Class MinMaxBounds.Ints
java.lang.Object
net.minecraft.advancements.critereon.MinMaxBounds<Integer>
net.minecraft.advancements.critereon.MinMaxBounds.Ints
- 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.Ints
private final Long
private final Long
Fields inherited from class net.minecraft.advancements.critereon.MinMaxBounds
ERROR_EMPTY, ERROR_SWAPPED, max, min
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic MinMaxBounds.Ints
atLeast
(int p_55387_) static MinMaxBounds.Ints
atMost
(int p_154820_) static MinMaxBounds.Ints
between
(int p_154815_, int p_154816_) private static MinMaxBounds.Ints
static MinMaxBounds.Ints
exactly
(int p_55372_) static MinMaxBounds.Ints
fromJson
(com.google.gson.JsonElement p_55374_) static MinMaxBounds.Ints
fromReader
(com.mojang.brigadier.StringReader p_55376_) static MinMaxBounds.Ints
fromReader
(com.mojang.brigadier.StringReader p_55382_, Function<Integer, Integer> p_55383_) boolean
matches
(int p_55391_) boolean
matchesSqr
(long p_154818_) private static Long
Methods inherited from class net.minecraft.advancements.critereon.MinMaxBounds
fromJson, fromReader, getMax, getMin, isAny, serializeToJson
-
Field Details
-
ANY
-
minSq
-
maxSq
-
-
Constructor Details
-
Ints
-
-
Method Details
-
create
private static MinMaxBounds.Ints create(com.mojang.brigadier.StringReader p_55378_, @Nullable Integer p_55379_, @Nullable Integer p_55380_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
squareOpt
-
exactly
-
between
-
atLeast
-
atMost
-
matches
public boolean matches(int p_55391_) -
matchesSqr
public boolean matchesSqr(long p_154818_) -
fromJson
-
fromReader
public static MinMaxBounds.Ints fromReader(com.mojang.brigadier.StringReader p_55376_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
fromReader
public static MinMaxBounds.Ints fromReader(com.mojang.brigadier.StringReader p_55382_, Function<Integer, Integer> p_55383_) throws com.mojang.brigadier.exceptions.CommandSyntaxException- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-