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

public class CopyCustomDataFunction

extends LootItemConditionalFunction

All mapped superinterfaces:

LootItemFunction, LootContextUser

ess
net.minecraft.world.level.storage.loot.functions.CopyCustomDataFunction
net.minecraft.class_3837
net.minecraft.loot.function.CopyNbtLootFunction
net.minecraft.src.C_313426_
net.minecraft.world.level.storage.loot.functions.CopyCustomDataFunction

Field summary

Modifier and TypeField
public static final com.mojang.serialization.MapCodec<CopyCustomDataFunction>
a
CODEC
field_45819
CODEC
f_314264_
private final NbtProvider
b
source
field_17013
source
f_316901_
private final List<CopyCustomDataFunction$CopyOperation>
c
operations
field_17014
operations
f_315899_

Constructor summary

ModifierConstructor
(List<LootItemCondition> conditions, NbtProvider source, List<CopyCustomDataFunction$CopyOperation> operations)

Method summary

Modifier and TypeMethod
public LootItemFunctionType<CopyCustomDataFunction>
b()
getType()
method_29321()
getType()
m_7162_()
public Set<LootContextParam<?>>
a()
getReferencedContextParams()
method_293()
getRequiredParameters()
m_6231_()
public ItemStack
a(cuq arg0, err arg1)
run(ItemStack arg0, LootContext arg1)
method_522(class_1799 arg0, class_47 arg1)
process(ItemStack arg0, LootContext arg1)
m_7372_(C_1391_ p_334578_, C_2811_ arg1)
public static CopyCustomDataFunction$Builder
a(evq arg0)
copyData(NbtProvider arg0)
method_16848(class_5651 arg0)
builder(LootNbtProvider source)
m_324427_(C_141490_ p_335021_)
public static CopyCustomDataFunction$Builder
a(err$b arg0)
copyData(LootContext$EntityTarget arg0)
method_35519(class_47$class_50 arg0)
builder(LootContext$EntityTarget target)
m_319309_(C_2811_$C_2815_ p_329362_)