类 IntRange
java.lang.Object
net.minecraft.world.level.storage.loot.IntRange
-
嵌套类概要
嵌套类修饰符和类型类说明(专用程序包) static interface
(专用程序包) static interface
-
字段概要
字段修饰符和类型字段说明static final com.mojang.serialization.Codec
<IntRange> private final IntRange.IntLimiter
private final NumberProvider
private final NumberProvider
private final IntRange.IntChecker
private static final com.mojang.serialization.Codec
<IntRange> -
构造器概要
构造器限定符构造器说明private
IntRange
(Optional<NumberProvider> p_299273_, Optional<NumberProvider> p_298799_) private
IntRange
(NumberProvider p_165006_, NumberProvider p_165007_) -
方法概要
修饰符和类型方法说明int
clamp
(LootContext p_165015_, int p_165016_) static IntRange
exact
(int p_165010_) Set
<ContextKey<?>> static IntRange
lowerBound
(int p_165027_) static IntRange
range
(int p_165012_, int p_165013_) boolean
test
(LootContext p_165029_, int p_165030_) private OptionalInt
static IntRange
upperBound
(int p_165041_)
-
字段详细资料
-
RECORD_CODEC
-
CODEC
-
min
-
max
-
limiter
-
predicate
-
-
构造器详细资料
-
IntRange
-
IntRange
-
-
方法详细资料
-
getReferencedContextParams
-
exact
-
range
-
lowerBound
-
upperBound
-
clamp
-
test
-
unpackExact
-