Class IntRange
java.lang.Object
net.minecraft.world.level.storage.loot.IntRange
-
Nested Class Summary
Modifier and TypeClassDescription(package private) static interface
(package private) static interface
-
Field Summary
Modifier and TypeFieldDescriptionstatic 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> -
Constructor Summary
ModifierConstructorDescriptionprivate
IntRange
(Optional<NumberProvider> p_299273_, Optional<NumberProvider> p_298799_) private
IntRange
(NumberProvider p_165006_, NumberProvider p_165007_) -
Method Summary
Modifier and TypeMethodDescriptionint
clamp
(LootContext p_165015_, int p_165016_) static IntRange
exact
(int p_165010_) Set
<LootContextParam<?>> 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_)
-
Field Details
-
RECORD_CODEC
-
CODEC
-
min
-
max
-
limiter
-
predicate
-
-
Constructor Details
-
IntRange
-
IntRange
-
-
Method Details
-
getReferencedContextParams
-
exact
-
range
-
lowerBound
-
upperBound
-
clamp
-
test
-
unpackExact
-