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

public class SetNameFunction

extends LootItemConditionalFunction

All mapped superinterfaces:

LootItemFunction, LootContextUser

eix
net.minecraft.world.level.storage.loot.functions.SetNameFunction
net.minecraft.class_3670
net.minecraft.loot.function.SetNameLootFunction
net.minecraft.src.C_2955_
net.minecraft.world.level.storage.loot.functions.LootItemFunctionSetName

Field summary

Modifier and TypeField
private static final org.slf4j.Logger
b
LOGGER
field_16230
LOGGER
f_81122_
public static final com.mojang.serialization.Codec<SetNameFunction>
a
CODEC
field_45848
CODEC
f_291592_
private final Optional<Component>
c
name
field_16228
name
f_81123_
private final Optional<LootContext$EntityTarget>
d
resolutionContext
field_16229
entity
f_81124_

Constructor summary

ModifierConstructor
private (List<LootItemCondition> conditions, Optional<Component> name, 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 static UnaryOperator<Component>
a(egw arg0, egw$b arg1)
createResolver(LootContext arg0, LootContext$EntityTarget arg1)
method_16190(class_47 arg0, class_47$class_50 arg1)
applySourceEntity(LootContext context, LootContext$EntityTarget sourceEntity)
m_81139_(C_2811_ p_81140_, C_2811_$C_2815_ p_81141_)
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_81138_, C_2811_ arg1)
public static LootItemConditionalFunction$Builder<?>
a(vf arg0)
setName(Component arg0)
method_35549(class_2561 arg0)
builder(Text name)
m_165457_(C_4996_ p_165458_)
public static LootItemConditionalFunction$Builder<?>
a(vf arg0, egw$b arg1)
setName(Component arg0, LootContext$EntityTarget arg1)
method_35550(class_2561 arg0, class_47$class_50 arg1)
builder(Text name, LootContext$EntityTarget target)
m_165459_(C_4996_ p_165460_, C_2811_$C_2815_ p_165461_)