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.CODECprivate static final com.mojang.serialization.Codec<IntRange> IntRange.RECORD_CODECMethods in net.minecraft.world.level.storage.loot that return IntRangeModifier and TypeMethodDescriptionstatic IntRangeIntRange.exact(int p_165010_) Create an IntRange that contains only exactly the given value.static IntRangeIntRange.lowerBound(int pMin) Create an IntRange with the given minimum (inclusive) and no upper bound.static IntRangeIntRange.range(int pMin, int pMax) Create an IntRange that ranges frommintomax, both inclusive.static IntRangeIntRange.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 IntRangeModifierConstructorDescriptionprivateLimitCount(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 IntRangeValueCheckCondition.rangeThe field for therangerecord component.private final IntRangeTimeCheck.Builder.valueprivate final IntRangeTimeCheck.valueThe field for thevaluerecord component.Fields in net.minecraft.world.level.storage.loot.predicates with type parameters of type IntRangeModifier and TypeFieldDescriptionprivate final ImmutableMap.Builder<String, IntRange> EntityHasScoreCondition.Builder.scoresEntityHasScoreCondition.scoresThe field for thescoresrecord component.Methods in net.minecraft.world.level.storage.loot.predicates that return IntRangeModifier and TypeMethodDescriptionValueCheckCondition.range()Returns the value of therangerecord component.TimeCheck.value()Returns the value of thevaluerecord 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 thescoresrecord component.Methods in net.minecraft.world.level.storage.loot.predicates with parameters of type IntRangeModifier and TypeMethodDescriptionprotected booleanEntityHasScoreCondition.hasScore(LootContext pLootContext, Entity pTargetEntity, Scoreboard pScoreboard, String pObjectiveName, IntRange pScoreRange) static LootItemCondition.BuilderValueCheckCondition.hasValue(NumberProvider pProvider, IntRange pRange) static TimeCheck.BuilderAdd a check that the score for the givenobjectiveNameis withinscoreRange.Constructors in net.minecraft.world.level.storage.loot.predicates with parameters of type IntRangeModifierConstructorDescriptionCreates an instance of aTimeCheckrecord class.ValueCheckCondition(NumberProvider provider, IntRange range) Creates an instance of aValueCheckConditionrecord 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 aEntityHasScoreConditionrecord class.