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

public class SetLoreFunction

extends LootItemConditionalFunction

All mapped superinterfaces:

LootItemFunction, LootContextUser

eiw
net.minecraft.world.level.storage.loot.functions.SetLoreFunction
net.minecraft.class_3671
net.minecraft.loot.function.SetLoreLootFunction
net.minecraft.src.C_2953_
net.minecraft.world.level.storage.loot.functions.LootItemFunctionSetLore

Field summary

Modifier and TypeField
public static final com.mojang.serialization.Codec<SetLoreFunction>
a
CODEC
field_45847
CODEC
f_290456_
private final boolean
b
replace
field_16232
replace
f_81079_
private final List<Component>
c
lore
field_16231
lore
f_81080_
private final Optional<LootContext$EntityTarget>
d
resolutionContext
field_16233
entity
f_81081_

Constructor summary

ModifierConstructor
public (List<LootItemCondition> conditions, boolean replace, List<Component> lore, Optional<LootContext$EntityTarget> entity)

Method summary

Modifier and TypeMethod
public LootItemFunctionType
b()
getType()
method_29321()
getType()
m_7162_()
public Set<LootContextParam<?>>
a()
getReferencedContextParams()
method_293()
getRequiredParameters()
m_6231_()
public ItemStack
a(cmy arg0, egw arg1)
run(ItemStack arg0, LootContext arg1)
method_522(class_1799 arg0, class_47 arg1)
process(ItemStack arg0, LootContext arg1)
m_7372_(C_1391_ p_81090_, C_2811_ arg1)
private ListTag
a(cmy arg0, boolean arg1)
getLoreTag(ItemStack arg0, boolean arg1)
method_15964(class_1799 arg0, boolean arg1)
getLoreForMerge(ItemStack stack, boolean otherLoreExists)
m_81091_(C_1391_ p_81093_, boolean arg1)
public static SetLoreFunction$Builder
c()
setLore()
method_35544()
builder()
m_165443_()