Class IntRange
java.lang.Object
net.minecraft.world.level.storage.loot.IntRange
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescription(package private) static interface(package private) static interface
- 
Field SummaryFieldsModifier 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 SummaryConstructorsModifierConstructorDescriptionprivateIntRange(Optional<NumberProvider> p_299273_, Optional<NumberProvider> p_298799_) privateIntRange(NumberProvider p_165006_, NumberProvider p_165007_) 
- 
Method SummaryModifier 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
 
-