net.minecraft.loot.function

public class EnchantRandomlyLootFunction$Builder

extends ConditionalLootFunction$Builder<EnchantRandomlyLootFunction$Builder>

All mapped superinterfaces:

LootFunction$Builder, LootConditionConsumingBuilder

net.minecraft.world.level.storage.loot.functions.EnchantRandomlyFunction$Builder
net.minecraft.class_109$class_4954
net.minecraft.loot.function.EnchantRandomlyLootFunction$Builder

Field summary

Modifier and TypeField
private Optional<RegistryEntryList<Enchantment>>
options
field_51794
options
private boolean
onlyCompatible
field_51795
onlyCompatible
private boolean
includeAdditionalCostComponent
field_1_819
includeAdditionalCostComponent

Constructor summary

ModifierConstructor
public ()

Method summary

Modifier and TypeMethod
protected EnchantRandomlyLootFunction$Builder
getThis()
method_523()
getThisBuilder()
public EnchantRandomlyLootFunction$Builder
withEnchantment(Holder<Enchantment> enchantment)
method_25992(class_6880<class_1887> arg0)
option(RegistryEntry<Enchantment> enchantment)
public EnchantRandomlyLootFunction$Builder
withOneOf(HolderSet<Enchantment> enchantments)
method_60293(class_6885<class_1887> arg0)
options(RegistryEntryList<Enchantment> options)
public EnchantRandomlyLootFunction$Builder
withOptions(HolderSet<Enchantment> enchantments)
method_1_763(class_6885<class_1887> arg0)
options2(RegistryEntryList<Enchantment> options)
public EnchantRandomlyLootFunction$Builder
allowingIncompatibleEnchantments()
method_60294()
allowIncompatible()
public EnchantRandomlyLootFunction$Builder
includeAdditionalCostComponent()
method_1_762()
includeAdditionalCostComponent()
public LootFunction
build()
method_515()
build()
protected ConditionalLootFunction$Builder
getThis()
method_523()
getThisBuilder()