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 dropWithSilkTouch, 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
ValueCheckLootCondition.value
The field for thevalue
record component.Modifier and TypeMethodDescriptionValueCheckLootCondition.value()
Returns the value of thevalue
record component.Modifier and TypeMethodDescriptionstatic LootCondition.Builder
ValueCheckLootCondition.builder
(LootNumberProvider value, BoundedIntUnaryOperator range) ModifierConstructorDescriptionValueCheckLootCondition
(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
LootingEnchantLootFunction.Builder.countRange
private final LootNumberProvider
LootingEnchantLootFunction.countRange
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.range
private final LootNumberProvider
EnchantWithLevelsLootFunction.range
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.Modifier and TypeMethodDescriptionSetAttributesLootFunction.attributeBuilder
(String name, RegistryEntry<EntityAttribute> attribute, EntityAttributeModifier.Operation operation, LootNumberProvider amountRange) EnchantWithLevelsLootFunction.builder
(LootNumberProvider range) LootingEnchantLootFunction.builder
(LootNumberProvider countRange) 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) SetEnchantmentsLootFunction.Builder.enchantment
(Enchantment enchantment, LootNumberProvider level) SetStewEffectLootFunction.Builder.withEffect
(StatusEffect effect, LootNumberProvider durationRange) ModifierConstructorDescription(package private)
Attribute
(String name, RegistryEntry<EntityAttribute> registryEntry, EntityAttributeModifier.Operation operation, LootNumberProvider amount, List<EquipmentSlot> list, Optional<UUID> optional) AttributeBuilder
(String name, RegistryEntry<EntityAttribute> attribute, EntityAttributeModifier.Operation operation, LootNumberProvider amount) Builder
(LootNumberProvider range) Builder
(LootNumberProvider countRange) (package private)
EnchantWithLevelsLootFunction
(List<LootCondition> conditions, LootNumberProvider range, boolean treasureEnchantmentsAllowed) (package private)
LootingEnchantLootFunction
(List<LootCondition> conditions, LootNumberProvider countRange, int limit) private
SetCountLootFunction
(List<LootCondition> conditions, LootNumberProvider countRange, boolean add) private
SetDamageLootFunction
(List<LootCondition> conditions, LootNumberProvider durabilityRange, boolean add) (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
BoundedIntUnaryOperator
(@Nullable LootNumberProvider min, @Nullable LootNumberProvider max) ModifierConstructorDescriptionprivate
-
Uses of LootNumberProvider in net.minecraft.loot.provider.number
Modifier and TypeClassDescriptionfinal 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.Codec<? 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.Codec<? extends LootNumberProvider>
LootNumberProviderType.codec()
Returns the value of thecodec
record component.Modifier and TypeMethodDescriptionprivate static LootNumberProviderType
LootNumberProviderTypes.register
(String id, com.mojang.serialization.Codec<? extends LootNumberProvider> codec) ModifierConstructorDescriptionCreates an instance of aBinomialLootNumberProvider
record class.Creates an instance of aUniformLootNumberProvider
record class.ModifierConstructorDescriptionLootNumberProviderType
(com.mojang.serialization.Codec<? extends LootNumberProvider> codec) Creates an instance of aLootNumberProviderType
record class.