Uses of Interface
net.minecraft.world.level.storage.loot.providers.number.NumberProvider
Package
Description
-
Uses of NumberProvider in net.minecraft.data.loot
Modifier and TypeMethodDescriptionprotected LootTable.Builder
BlockLootSubProvider.createSingleItemTable
(ItemLike p_251584_, NumberProvider p_249865_) protected LootTable.Builder
BlockLootSubProvider.createSingleItemTableWithSilkTouch
(Block p_251449_, ItemLike p_248558_, NumberProvider p_250047_) -
Uses of NumberProvider in net.minecraft.world.level.storage.loot
Modifier and TypeFieldDescriptionprivate NumberProvider
LootPool.bonusRolls
private NumberProvider
LootPool.Builder.bonusRolls
private final NumberProvider
IntRange.max
private final NumberProvider
IntRange.min
private NumberProvider
LootPool.Builder.rolls
private NumberProvider
LootPool.rolls
Modifier and TypeMethodDescriptionLootPool.Builder.setBonusRolls
(NumberProvider p_165136_) void
LootPool.setBonusRolls
(NumberProvider v) LootPool.Builder.setRolls
(NumberProvider p_165134_) void
LootPool.setRolls
(NumberProvider v) ModifierConstructorDescriptionprivate
IntRange
(NumberProvider p_165006_, NumberProvider p_165007_) (package private)
LootPool
(List<LootPoolEntryContainer> p_298764_, List<LootItemCondition> p_299316_, List<LootItemFunction> p_298954_, NumberProvider p_165131_, NumberProvider p_165132_, Optional<String> name) ModifierConstructorDescriptionprivate
IntRange
(Optional<NumberProvider> p_299273_, Optional<NumberProvider> p_298799_) -
Uses of NumberProvider in net.minecraft.world.level.storage.loot.functions
Modifier and TypeFieldDescriptionprivate final NumberProvider
SetAttributesFunction.Modifier.amount
The field for theamount
record component.private final NumberProvider
SetAttributesFunction.ModifierBuilder.amount
private final NumberProvider
LootingEnchantFunction.Builder.count
private final NumberProvider
SetItemDamageFunction.damage
private final NumberProvider
SetStewEffectFunction.EffectEntry.duration
The field for theduration
record component.private final NumberProvider
EnchantWithLevelsFunction.Builder.levels
private final NumberProvider
EnchantWithLevelsFunction.levels
private final NumberProvider
LootingEnchantFunction.value
private final NumberProvider
SetItemCountFunction.value
Modifier and TypeFieldDescriptionprivate final com.google.common.collect.ImmutableMap.Builder<Holder<Enchantment>,
NumberProvider> SetEnchantmentsFunction.Builder.enchantments
private final Map<Holder<Enchantment>,
NumberProvider> SetEnchantmentsFunction.enchantments
Modifier and TypeMethodDescriptionSetAttributesFunction.Modifier.amount()
Returns the value of theamount
record component.SetStewEffectFunction.EffectEntry.duration()
Returns the value of theduration
record component.Modifier and TypeMethodDescriptionEnchantWithLevelsFunction.enchantWithLevels
(NumberProvider p_165197_) LootingEnchantFunction.lootingMultiplier
(NumberProvider p_165230_) SetAttributesFunction.modifier
(String p_165236_, Holder<Attribute> p_298306_, AttributeModifier.Operation p_165238_, NumberProvider p_165239_) static LootItemConditionalFunction.Builder<?>
SetItemCountFunction.setCount
(NumberProvider p_165413_) static LootItemConditionalFunction.Builder<?>
SetItemCountFunction.setCount
(NumberProvider p_165415_, boolean p_165416_) static LootItemConditionalFunction.Builder<?>
SetItemDamageFunction.setDamage
(NumberProvider p_165431_) static LootItemConditionalFunction.Builder<?>
SetItemDamageFunction.setDamage
(NumberProvider p_165433_, boolean p_165434_) SetStewEffectFunction.Builder.withEffect
(MobEffect p_165473_, NumberProvider p_165474_) SetEnchantmentsFunction.Builder.withEnchantment
(Enchantment p_165375_, NumberProvider p_165376_) ModifierConstructorDescriptionBuilder
(NumberProvider p_165200_) Builder
(NumberProvider p_165232_) (package private)
EffectEntry
(Holder<MobEffect> effect, NumberProvider duration) Creates an instance of aEffectEntry
record class.(package private)
EnchantWithLevelsFunction
(List<LootItemCondition> p_298580_, NumberProvider p_165194_, boolean p_165195_) (package private)
LootingEnchantFunction
(List<LootItemCondition> p_298273_, NumberProvider p_165227_, int p_165228_) (package private)
Modifier
(String name, Holder<Attribute> attribute, AttributeModifier.Operation operation, NumberProvider amount, List<EquipmentSlot> slots, Optional<UUID> id) Creates an instance of aModifier
record class.ModifierBuilder
(String p_165263_, Holder<Attribute> p_298853_, AttributeModifier.Operation p_165265_, NumberProvider p_165266_) private
SetItemCountFunction
(List<LootItemCondition> p_299158_, NumberProvider p_165410_, boolean p_165411_) private
SetItemDamageFunction
(List<LootItemCondition> p_298394_, NumberProvider p_165428_, boolean p_165429_) ModifierConstructorDescription(package private)
SetEnchantmentsFunction
(List<LootItemCondition> p_299192_, Map<Holder<Enchantment>, NumberProvider> p_165338_, boolean p_165339_) -
Uses of NumberProvider in net.minecraft.world.level.storage.loot.predicates
Modifier and TypeFieldDescriptionprivate final NumberProvider
ValueCheckCondition.provider
The field for theprovider
record component.Modifier and TypeMethodDescriptionValueCheckCondition.provider()
Returns the value of theprovider
record component.Modifier and TypeMethodDescriptionstatic LootItemCondition.Builder
ValueCheckCondition.hasValue
(NumberProvider p_165529_, IntRange p_165530_) ModifierConstructorDescriptionValueCheckCondition
(NumberProvider provider, IntRange range) Creates an instance of aValueCheckCondition
record class. -
Uses of NumberProvider in net.minecraft.world.level.storage.loot.providers.number
Modifier and TypeClassDescriptionfinal record
final record
final record
final record
Modifier and TypeFieldDescriptionprivate final NumberProvider
UniformGenerator.max
The field for themax
record component.private final NumberProvider
UniformGenerator.min
The field for themin
record component.private final NumberProvider
BinomialDistributionGenerator.n
The field for then
record component.private final NumberProvider
BinomialDistributionGenerator.p
The field for thep
record component.Modifier and TypeFieldDescriptionprivate final com.mojang.serialization.Codec<? extends NumberProvider>
LootNumberProviderType.codec
The field for thecodec
record component.static final com.mojang.serialization.Codec<NumberProvider>
NumberProviders.CODEC
private static final com.mojang.serialization.Codec<NumberProvider>
NumberProviders.TYPED_CODEC
Modifier and TypeMethodDescriptionUniformGenerator.max()
Returns the value of themax
record component.UniformGenerator.min()
Returns the value of themin
record component.BinomialDistributionGenerator.n()
Returns the value of then
record component.BinomialDistributionGenerator.p()
Returns the value of thep
record component.Modifier and TypeMethodDescriptioncom.mojang.serialization.Codec<? extends NumberProvider>
LootNumberProviderType.codec()
Returns the value of thecodec
record component.Modifier and TypeMethodDescriptionprivate static LootNumberProviderType
NumberProviders.register
(String p_165739_, com.mojang.serialization.Codec<? extends NumberProvider> p_298354_) ModifierConstructorDescriptionCreates an instance of aBinomialDistributionGenerator
record class.UniformGenerator
(NumberProvider min, NumberProvider max) Creates an instance of aUniformGenerator
record class.ModifierConstructorDescriptionLootNumberProviderType
(com.mojang.serialization.Codec<? extends NumberProvider> codec) Creates an instance of aLootNumberProviderType
record class.