net.minecraft.loot.function

public class SetLoreLootFunction

extends ConditionalLootFunction

All mapped superinterfaces:

LootFunction, LootContextAware, LootTableReportable

net.minecraft.world.level.storage.loot.functions.SetLoreFunction
net.minecraft.world.level.storage.loot.functions.SetLoreFunction
net.minecraft.class_3671
net.minecraft.loot.function.SetLoreLootFunction

Field summary

Modifier and TypeField
public static final com.mojang.serialization.MapCodec<SetLoreLootFunction>
MAP_CODEC
MAP_CODEC
field_45847
CODEC
private final List<Text>
lore
lore
field_16231
lore
private final ListOperation
mode
mode
field_50024
operation
private final Optional<LootContext$EntityReference>
resolutionContext
resolutionContext
field_16233
entity

Constructor summary

ModifierConstructor
public (List<LootCondition> conditions, List<Text> lore, ListOperation operation, Optional<LootContext$EntityReference> entity)

Method summary

Modifier and TypeMethod
public com.mojang.serialization.MapCodec<SetLoreLootFunction>
codec()
codec()
method_1_738()
getCodec()
public Set<ContextParameter<?>>
getReferencedContextParams()
getReferencedContextParams()
method_293()
getAllowedParameters()
public ItemStack
run(ItemStack itemStack, LootContext context)
run(ItemStack itemStack, LootContext context)
method_522(class_1799 arg0, class_47 arg1)
process(ItemStack arg0, LootContext arg1)
private List<Text>
updateLore(ItemLore itemLore, LootContext context)
updateLore(ItemLore itemLore, LootContext context)
method_57658(class_9290 arg0, class_47 arg1)
getNewLoreTexts(LoreComponent current, LootContext context)
public static SetLoreLootFunction$Builder
setLore()
setLore()
method_35544()
builder()