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

public class SetNameFunction

extends LootItemConditionalFunction

All mapped superinterfaces:

LootItemFunction, LootContextUser

ess
net.minecraft.world.level.storage.loot.functions.SetNameFunction
net.minecraft.class_3670
net.minecraft.unmapped.C_wsvkpiky
net.minecraft.loot.function.SetNameLootFunction
net.minecraft.loot.function.SetNameLootFunction
net.minecraft.src.C_2955_
net.minecraft.world.level.storage.loot.functions.LootItemFunctionSetLore

Field summary

Modifier and TypeField
private static final org.slf4j.Logger
b
LOGGER
field_16230
f_cvsxnvmg
LOGGER
LOGGER
f_81122_
public static final com.mojang.serialization.MapCodec<SetNameFunction>
a
CODEC
field_45848
f_rdloarji
CODEC
CODEC
f_291592_
private final Optional<Component>
c
name
field_16228
f_piwnqeba
name
name
f_81123_
private final Optional<LootContext$EntityTarget>
d
resolutionContext
field_16229
f_elaedipn
entity
entity
f_81124_
private final SetNameFunction$Target
e
target
field_50208
f_ltjhbgnq
target
target
f_315028_

Constructor summary

ModifierConstructor
private (List<LootItemCondition> conditions, Optional<Component> name, Optional<LootContext$EntityTarget> entity, SetNameFunction$Target target)

Method summary

Modifier and TypeMethod
public LootItemFunctionType<SetNameFunction>
b()
getType()
method_29321()
m_ngvoddkv()
getType()
getType()
m_7162_()
public Set<LootContextParam<?>>
a()
getReferencedContextParams()
method_293()
m_oozesizv()
getRequiredParameters()
getRequiredParameters()
m_6231_()
public static UnaryOperator<Component>
a(eqj arg0, eqj$b arg1)
createResolver(LootContext arg0, LootContext$EntityTarget arg1)
method_16190(class_47 arg0, class_47$class_50 arg1)
m_sxelynuf(C_iakykpgh arg0, C_iakykpgh$C_qtufoufh arg1)
applySourceEntity(LootContext context, LootContext$EntityTarget sourceEntity)
applySourceEntity(LootContext context, LootContext$EntityTarget sourceEntity)
m_81139_(C_2811_ p_81140_, C_2811_$C_2815_ p_81141_)
public ItemStack
a(cuq arg0, eqj arg1)
run(ItemStack arg0, LootContext arg1)
method_522(class_1799 arg0, class_47 arg1)
m_axzztavb(C_sddaxwyk arg0, C_iakykpgh arg1)
process(ItemStack arg0, LootContext arg1)
process(ItemStack arg0, LootContext arg1)
m_7372_(C_1391_ p_81138_, C_2811_ arg1)
public static LootItemConditionalFunction$Builder<?>
a(xp arg0, ess$a arg1)
setName(Component arg0, SetNameFunction$Target arg1)
method_35549(class_2561 arg0, class_3670$class_9475 arg1)
m_qjkvclgt(C_rdaqiwdt arg0, C_wsvkpiky$C_pyscauma arg1)
builder(Text name, SetNameLootFunction$Target target)
m_165459_(C_4996_ p_165460_, C_2955_$C_313644_ p_336143_)
public static LootItemConditionalFunction$Builder<?>
a(xp arg0, ess$a arg1, eqj$b arg2)
setName(Component arg0, SetNameFunction$Target arg1, LootContext$EntityTarget arg2)
method_35550(class_2561 arg0, class_3670$class_9475 arg1, class_47$class_50 arg2)
m_auxopsyl(C_rdaqiwdt arg0, C_wsvkpiky$C_pyscauma arg1, C_iakykpgh$C_qtufoufh arg2)
builder(Text name, SetNameLootFunction$Target target, LootContext$EntityTarget entity)
m_165457_(C_4996_ p_165458_, C_2955_$C_313644_ p_335783_, C_2811_$C_2815_ p_332047_)