Uses of Interface
net.minecraft.loot.provider.number.LootNumberProvider
Package
Description
-
Uses of LootNumberProvider in net.minecraft.data.server.loottable
Modifier and TypeMethodDescriptionprotected LootTable.Builder
BlockLootTableGenerator.drops
(Block block, ItemConvertible drop, LootNumberProvider count) protected LootTable.Builder
BlockLootTableGenerator.drops
(ItemConvertible drop, LootNumberProvider count) -
Uses of LootNumberProvider in net.minecraft.loot
Modifier and TypeFieldDescriptionprivate final LootNumberProvider
LootPool.bonusRolls
private LootNumberProvider
LootPool.Builder.bonusRollsRange
private LootNumberProvider
LootPool.Builder.rolls
private final LootNumberProvider
LootPool.rolls
Modifier and TypeMethodDescriptionLootPool.Builder.bonusRolls
(LootNumberProvider bonusRolls) LootPool.Builder.rolls
(LootNumberProvider rolls) ModifierConstructorDescription(package private)
LootPool
(List<LootPoolEntry> entries, List<LootCondition> conditions, List<LootFunction> functions, LootNumberProvider rolls, LootNumberProvider bonusRolls) -
Uses of LootNumberProvider in net.minecraft.loot.condition
Modifier and TypeFieldDescriptionprivate final LootNumberProvider
RandomChanceLootCondition.chance
The field for thechance
record component.private final LootNumberProvider
ValueCheckLootCondition.value
The field for thevalue
record component.Modifier and TypeMethodDescriptionRandomChanceLootCondition.chance()
Returns the value of thechance
record component.ValueCheckLootCondition.value()
Returns the value of thevalue
record component.Modifier and TypeMethodDescriptionstatic LootCondition.Builder
RandomChanceLootCondition.builder
(LootNumberProvider chance) static LootCondition.Builder
ValueCheckLootCondition.builder
(LootNumberProvider value, BoundedIntUnaryOperator range) ModifierConstructorDescriptionRandomChanceLootCondition
(LootNumberProvider lootNumberProvider) ValueCheckLootCondition
(LootNumberProvider value, BoundedIntUnaryOperator range) Creates an instance of aValueCheckLootCondition
record class. -
Uses of LootNumberProvider in net.minecraft.loot.function
Modifier and TypeFieldDescriptionprivate final LootNumberProvider
SetAttributesLootFunction.Attribute.amount
The field for theamount
record component.private final LootNumberProvider
SetAttributesLootFunction.AttributeBuilder.amount
private final LootNumberProvider
SetOminousBottleAmplifierLootFunction.amplifier
private final LootNumberProvider
EnchantedCountIncreaseLootFunction.Builder.count
private final LootNumberProvider
EnchantedCountIncreaseLootFunction.count
private final LootNumberProvider
SetCountLootFunction.countRange
private final LootNumberProvider
SetDamageLootFunction.durabilityRange
private final LootNumberProvider
SetStewEffectLootFunction.StewEffect.duration
The field for theduration
record component.private final LootNumberProvider
EnchantWithLevelsLootFunction.Builder.levels
private final LootNumberProvider
EnchantWithLevelsLootFunction.levels
private final LootNumberProvider
SetCustomModelDataLootFunction.value
Modifier and TypeFieldDescriptionprivate final ImmutableMap.Builder
<RegistryEntry<Enchantment>, LootNumberProvider> SetEnchantmentsLootFunction.Builder.enchantments
private final Map
<RegistryEntry<Enchantment>, LootNumberProvider> SetEnchantmentsLootFunction.enchantments
Modifier and TypeMethodDescriptionSetAttributesLootFunction.Attribute.amount()
Returns the value of theamount
record component.SetStewEffectLootFunction.StewEffect.duration()
Returns the value of theduration
record component.SetOminousBottleAmplifierLootFunction.getAmplifier()
Modifier and TypeMethodDescriptionSetAttributesLootFunction.attributeBuilder
(Identifier id, RegistryEntry<EntityAttribute> attribute, EntityAttributeModifier.Operation operation, LootNumberProvider amountRange) EnchantedCountIncreaseLootFunction.builder
(RegistryWrapper.WrapperLookup registryLookup, LootNumberProvider count) EnchantWithLevelsLootFunction.builder
(RegistryWrapper.WrapperLookup registryLookup, LootNumberProvider levels) static ConditionalLootFunction.Builder
<?> SetCountLootFunction.builder
(LootNumberProvider countRange) static ConditionalLootFunction.Builder
<?> SetCountLootFunction.builder
(LootNumberProvider countRange, boolean add) static ConditionalLootFunction.Builder
<?> SetDamageLootFunction.builder
(LootNumberProvider durabilityRange) static ConditionalLootFunction.Builder
<?> SetDamageLootFunction.builder
(LootNumberProvider durabilityRange, boolean add) static ConditionalLootFunction.Builder
<?> SetOminousBottleAmplifierLootFunction.builder
(LootNumberProvider amplifier) SetEnchantmentsLootFunction.Builder.enchantment
(RegistryEntry<Enchantment> enchantment, LootNumberProvider level) SetStewEffectLootFunction.Builder.withEffect
(RegistryEntry<StatusEffect> effect, LootNumberProvider durationRange) ModifierConstructorDescription(package private)
Attribute
(Identifier identifier, RegistryEntry<EntityAttribute> registryEntry, EntityAttributeModifier.Operation operation, LootNumberProvider amount, List<AttributeModifierSlot> list) AttributeBuilder
(Identifier id, RegistryEntry<EntityAttribute> attribute, EntityAttributeModifier.Operation operation, LootNumberProvider amount) Builder
(RegistryEntry<Enchantment> enchantment, LootNumberProvider count) Builder
(LootNumberProvider levels) (package private)
EnchantedCountIncreaseLootFunction
(List<LootCondition> conditions, RegistryEntry<Enchantment> enchantment, LootNumberProvider count, int limit) (package private)
EnchantWithLevelsLootFunction
(List<LootCondition> conditions, LootNumberProvider levels, Optional<RegistryEntryList<Enchantment>> options) private
SetCountLootFunction
(List<LootCondition> conditions, LootNumberProvider countRange, boolean add) private
SetCustomModelDataLootFunction
(List<LootCondition> conditions, LootNumberProvider value) private
SetDamageLootFunction
(List<LootCondition> conditions, LootNumberProvider durabilityRange, boolean add) private
SetOminousBottleAmplifierLootFunction
(List<LootCondition> conditions, LootNumberProvider amplifier) (package private)
StewEffect
(RegistryEntry<StatusEffect> registryEntry, LootNumberProvider lootNumberProvider) ModifierConstructorDescription(package private)
SetEnchantmentsLootFunction
(List<LootCondition> conditions, Map<RegistryEntry<Enchantment>, LootNumberProvider> enchantments, boolean add) -
Uses of LootNumberProvider in net.minecraft.loot.operator
Modifier and TypeFieldDescriptionprivate final @Nullable LootNumberProvider
BoundedIntUnaryOperator.max
private final @Nullable LootNumberProvider
BoundedIntUnaryOperator.min
ModifierConstructorDescriptionprivate
ModifierConstructorDescriptionprivate
-
Uses of LootNumberProvider in net.minecraft.loot.provider.number
Modifier and TypeClassDescriptionfinal record
final record
final record
final record
final record
final record
Modifier and TypeFieldDescriptionprivate final LootNumberProvider
UniformLootNumberProvider.max
The field for themax
record component.private final LootNumberProvider
UniformLootNumberProvider.min
The field for themin
record component.private final LootNumberProvider
BinomialLootNumberProvider.n
The field for then
record component.private final LootNumberProvider
BinomialLootNumberProvider.p
The field for thep
record component.Modifier and TypeFieldDescriptionprivate static final com.mojang.serialization.Codec
<LootNumberProvider> LootNumberProviderTypes.BASE_CODEC
private final com.mojang.serialization.MapCodec
<? extends LootNumberProvider> LootNumberProviderType.codec
The field for thecodec
record component.static final com.mojang.serialization.Codec
<LootNumberProvider> LootNumberProviderTypes.CODEC
Modifier and TypeMethodDescriptionUniformLootNumberProvider.max()
Returns the value of themax
record component.UniformLootNumberProvider.min()
Returns the value of themin
record component.BinomialLootNumberProvider.n()
Returns the value of then
record component.BinomialLootNumberProvider.p()
Returns the value of thep
record component.Modifier and TypeMethodDescriptioncom.mojang.serialization.MapCodec
<? extends LootNumberProvider> LootNumberProviderType.codec()
Returns the value of thecodec
record component.Modifier and TypeMethodDescriptionprivate static LootNumberProviderType
LootNumberProviderTypes.register
(String id, com.mojang.serialization.MapCodec<? extends LootNumberProvider> codec) ModifierConstructorDescriptionCreates an instance of aBinomialLootNumberProvider
record class.Creates an instance of aUniformLootNumberProvider
record class.ModifierConstructorDescriptionLootNumberProviderType
(com.mojang.serialization.MapCodec<? extends LootNumberProvider> mapCodec)