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
static class
-
Field Summary
Modifier and TypeFieldDescriptionprivate IntRange.IntLimiter
(package private) NumberProvider
(package private) NumberProvider
private IntRange.IntChecker
-
Constructor Summary
-
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_)
static IntRange
upperBound(int p_165041_)
-
Field Details
-
min
-
max
-
limiter
-
predicate
-
-
Constructor Details
-
IntRange
IntRange(@Nullable NumberProvider p_165006_, @Nullable NumberProvider p_165007_)
-
-
Method Details
-
getReferencedContextParams
-
exact
-
range
-
lowerBound
-
upperBound
-
clamp
-
test
-