Class IntRange
java.lang.Object
net.minecraft.world.level.storage.loot.IntRange
- 
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static interface(package private) static interface - 
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<IntRange>private final IntRange.IntLimiterprivate final NumberProviderprivate final NumberProviderprivate final IntRange.IntCheckerprivate static final com.mojang.serialization.Codec<IntRange> - 
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateIntRange(Optional<NumberProvider> p_300812_, Optional<NumberProvider> p_298905_) privateIntRange(NumberProvider p_165006_, NumberProvider p_165007_)  - 
Method Summary
Modifier and TypeMethodDescriptionintclamp(LootContext p_165015_, int p_165016_) static IntRangeexact(int p_165010_) Set<LootContextParam<?>>static IntRangelowerBound(int p_165027_) static IntRangerange(int p_165012_, int p_165013_) booleantest(LootContext p_165029_, int p_165030_) private OptionalIntstatic IntRangeupperBound(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
 
 -