net.minecraft.loot.function

public class SetEnchantmentsLootFunction$Builder

extends ConditionalLootFunction$Builder<SetEnchantmentsLootFunction$Builder>

All mapped superinterfaces:

LootFunction$Builder, LootConditionConsumingBuilder

net.minecraft.world.level.storage.loot.functions.SetEnchantmentsFunction$Builder
net.minecraft.class_5642$class_6158
net.minecraft.loot.function.SetEnchantmentsLootFunction$Builder

Field summary

Modifier and TypeField
private final com.google.common.collect.ImmutableMap$Builder<RegistryEntry<Enchantment>, LootNumberProvider>
enchantments
field_31864
enchantments
private final boolean
add
field_31865
add

Constructor summary

ModifierConstructor
public ()
public (boolean add)

Method summary

Modifier and TypeMethod
protected SetEnchantmentsLootFunction$Builder
getThis()
method_523()
getThisBuilder()
public SetEnchantmentsLootFunction$Builder
withEnchantment(Holder<Enchantment> enchantment, NumberProvider levelProvider)
method_35539(class_6880<class_1887> arg0, class_5658 arg1)
enchantment(RegistryEntry<Enchantment> enchantment, LootNumberProvider level)
public LootFunction
build()
method_515()
build()
protected ConditionalLootFunction$Builder
getThis()
method_523()
getThisBuilder()