Class CopyNameFunction

java.lang.Object
net.minecraft.world.level.storage.loot.functions.LootItemConditionalFunction
net.minecraft.world.level.storage.loot.functions.CopyNameFunction
All Implemented Interfaces:
BiFunction<ItemStack,LootContext,ItemStack>, LootItemFunction, LootContextUser

public class CopyNameFunction extends LootItemConditionalFunction
LootItemFunction that sets the stack's name by copying it from somewhere else, such as the killing player.