Uses of Class
net.minecraft.world.level.storage.loot.IntRange
Packages that use IntRange
Package
Description
-
Uses of IntRange in net.minecraft.world.level.storage.loot
Fields in net.minecraft.world.level.storage.loot with type parameters of type IntRangeModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec
<IntRange> IntRange.CODEC
private static final com.mojang.serialization.Codec
<IntRange> IntRange.RECORD_CODEC
Methods in net.minecraft.world.level.storage.loot that return IntRangeModifier and TypeMethodDescriptionstatic IntRange
IntRange.exact
(int p_165010_) Create an IntRange that contains only exactly the given value.static IntRange
IntRange.lowerBound
(int pMin) Create an IntRange with the given minimum (inclusive) and no upper bound.static IntRange
IntRange.range
(int pMin, int pMax) Create an IntRange that ranges frommin
tomax
, both inclusive.static IntRange
IntRange.upperBound
(int pMax) Create an IntRange with the given maximum (inclusive) and no lower bound. -
Uses of IntRange in net.minecraft.world.level.storage.loot.functions
Fields in net.minecraft.world.level.storage.loot.functions declared as IntRangeMethods in net.minecraft.world.level.storage.loot.functions with parameters of type IntRangeModifier and TypeMethodDescriptionstatic LootItemConditionalFunction.Builder
<?> LimitCount.limitCount
(IntRange pCountLimit) Constructors in net.minecraft.world.level.storage.loot.functions with parameters of type IntRangeModifierConstructorDescriptionprivate
LimitCount
(List<LootItemCondition> p_299132_, IntRange p_165214_) -
Uses of IntRange in net.minecraft.world.level.storage.loot.predicates
Fields in net.minecraft.world.level.storage.loot.predicates declared as IntRangeModifier and TypeFieldDescriptionprivate final IntRange
ValueCheckCondition.range
The field for therange
record component.private final IntRange
TimeCheck.Builder.value
private final IntRange
TimeCheck.value
The field for thevalue
record component.Fields in net.minecraft.world.level.storage.loot.predicates with type parameters of type IntRangeModifier and TypeFieldDescriptionEntityHasScoreCondition.Builder.scores
EntityHasScoreCondition.scores
The field for thescores
record component.Methods in net.minecraft.world.level.storage.loot.predicates that return IntRangeModifier and TypeMethodDescriptionValueCheckCondition.range()
Returns the value of therange
record component.TimeCheck.value()
Returns the value of thevalue
record component.Methods in net.minecraft.world.level.storage.loot.predicates that return types with arguments of type IntRangeModifier and TypeMethodDescriptionEntityHasScoreCondition.scores()
Returns the value of thescores
record component.Methods in net.minecraft.world.level.storage.loot.predicates with parameters of type IntRangeModifier and TypeMethodDescriptionprotected boolean
EntityHasScoreCondition.hasScore
(LootContext pLootContext, Entity pTargetEntity, Scoreboard pScoreboard, String pObjectiveName, IntRange pScoreRange) static LootItemCondition.Builder
ValueCheckCondition.hasValue
(NumberProvider pProvider, IntRange pRange) static TimeCheck.Builder
Add a check that the score for the givenobjectiveName
is withinscoreRange
.Constructors in net.minecraft.world.level.storage.loot.predicates with parameters of type IntRangeModifierConstructorDescriptionCreates an instance of aTimeCheck
record class.ValueCheckCondition
(NumberProvider provider, IntRange range) Creates an instance of aValueCheckCondition
record class.Constructor parameters in net.minecraft.world.level.storage.loot.predicates with type arguments of type IntRangeModifierConstructorDescriptionEntityHasScoreCondition
(Map<String, IntRange> scores, LootContext.EntityTarget entityTarget) Creates an instance of aEntityHasScoreCondition
record class.