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

public class CopyNameFunction

extends LootItemConditionalFunction

All mapped superinterfaces:

LootItemFunction, LootContextUser

exr
net.minecraft.world.level.storage.loot.functions.CopyNameFunction
net.minecraft.class_101
net.minecraft.loot.function.CopyNameLootFunction
net.minecraft.world.level.storage.loot.functions.LootItemFunctionCopyName

Field summary

Modifier and TypeField
public static final com.mojang.serialization.MapCodec<CopyNameFunction>
a
CODEC
field_45817
CODEC
private final CopyNameFunction$NameSource
b
source
field_1018
source

Constructor summary

ModifierConstructor
private (List<LootItemCondition> conditions, CopyNameFunction$NameSource source)

Method summary

Modifier and TypeMethod
public LootItemFunctionType<CopyNameFunction>
b()
getType()
method_29321()
getType()
public Set<ContextKey<?>>
a()
getReferencedContextParams()
method_293()
getAllowedParameters()
public ItemStack
a(cxp arg0, ewp arg1)
run(ItemStack arg0, LootContext arg1)
method_522(class_1799 arg0, class_47 arg1)
process(ItemStack arg0, LootContext arg1)
public static LootItemConditionalFunction$Builder<?>
a(exr$a arg0)
copyName(CopyNameFunction$NameSource arg0)
method_473(class_101$class_102 arg0)
builder(CopyNameLootFunction$Source source)