net.minecraft.world.level.storage.loot.functions

public class EnchantRandomlyFunction

extends LootItemConditionalFunction

All mapped superinterfaces:

LootItemFunction, LootContextUser

dca
net.minecraft.world.level.storage.loot.functions.EnchantRandomlyFunction
net.minecraft.class_109
net.minecraft.loot.function.EnchantRandomlyLootFunction
net.minecraft.loot.functions.EnchantRandomly
net.minecraft.server.v1_16_R1.LootItemFunctionEnchant

Field summary

Modifier and TypeField
private static final org.apache.logging.log4j.Logger
a
LOGGER
field_1031
LOGGER
field_186557_a
private final List<Enchantment>
b
enchantments
field_1030
enchantments
field_186558_b

Constructor summary

ModifierConstructor
private (LootItemCondition[] conditions, Collection<Enchantment> enchantments)

Method summary

Modifier and TypeMethod
public LootItemFunctionType
b()
getType()
method_29321()
getType()
func_230425_b_()
public ItemStack
a(bki arg0, dat arg1)
run(ItemStack arg0, LootContext arg1)
method_522(class_1799 arg0, class_47 arg1)
process(ItemStack arg0, LootContext arg1)
func_215859_a(ItemStack arg0, LootContext arg1)
private static ItemStack
a(bki arg0, bnw arg1, Random arg2)
enchantItem(ItemStack arg0, Enchantment arg1, Random arg2)
method_26266(class_1799 arg0, class_1887 arg1, Random arg2)
method_26266(ItemStack arg0, Enchantment arg1, Random arg2)
func_237420_a_(ItemStack arg0, Enchantment arg1, Random arg2)
public static LootItemConditionalFunction$Builder<?>
d()
randomApplicableEnchantment()
method_489()
builder()
func_215900_c()