Class SetLoreFunction

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

public class SetLoreFunction extends LootItemConditionalFunction
LootItemFunction that sets a stack's lore tag, optionally replacing any previously present lore. The Components for the lore tag are optionally resolved relative to a given LootContext.EntityTarget for entity-sensitive component data such as scoreboard scores.