Class MinMaxBounds.IntBound
- java.lang.Object
-
- net.minecraft.advancements.criterion.MinMaxBounds<java.lang.Integer>
-
- net.minecraft.advancements.criterion.MinMaxBounds.IntBound
-
- Enclosing class:
- MinMaxBounds<T extends java.lang.Number>
public static class MinMaxBounds.IntBound extends MinMaxBounds<java.lang.Integer>
-
-
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.IntBound
ANY
private java.lang.Long
maxSq
private java.lang.Long
minSq
-
Fields inherited from class net.minecraft.advancements.criterion.MinMaxBounds
ERROR_EMPTY, ERROR_SWAPPED, max, min
-
-
Constructor Summary
Constructors Modifier Constructor Description private
IntBound(java.lang.Integer p_i49716_1_, java.lang.Integer p_i49716_2_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MinMaxBounds.IntBound
atLeast(int p_211340_0_)
private static MinMaxBounds.IntBound
create(com.mojang.brigadier.StringReader p_211338_0_, java.lang.Integer p_211338_1_, java.lang.Integer p_211338_2_)
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_, java.util.function.Function<java.lang.Integer,java.lang.Integer> p_211341_1_)
boolean
matches(int p_211339_1_)
private static java.lang.Long
squareOpt(java.lang.Integer p_211343_0_)
-
Methods inherited from class net.minecraft.advancements.criterion.MinMaxBounds
fromJson, fromReader, getMax, getMin, isAny, serializeToJson
-
-
-
-
Field Detail
-
ANY
public static final MinMaxBounds.IntBound ANY
-
minSq
private final java.lang.Long minSq
-
maxSq
private final java.lang.Long maxSq
-
-
Method Detail
-
create
private static MinMaxBounds.IntBound create(com.mojang.brigadier.StringReader p_211338_0_, @Nullable java.lang.Integer p_211338_1_, @Nullable java.lang.Integer p_211338_2_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
squareOpt
@Nullable private static java.lang.Long squareOpt(@Nullable java.lang.Integer p_211343_0_)
-
exactly
public static MinMaxBounds.IntBound exactly(int p_211345_0_)
-
atLeast
public static MinMaxBounds.IntBound atLeast(int p_211340_0_)
-
matches
public boolean matches(int p_211339_1_)
-
fromJson
public static MinMaxBounds.IntBound fromJson(@Nullable com.google.gson.JsonElement p_211344_0_)
-
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_, java.util.function.Function<java.lang.Integer,java.lang.Integer> p_211341_1_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
-