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

public class CopyCustomDataFunction

extends LootItemConditionalFunction

All mapped superinterfaces:

LootItemFunction, LootContextUser

exq
net.minecraft.world.level.storage.loot.functions.CopyCustomDataFunction
net.minecraft.class_3837
net.minecraft.loot.function.CopyNbtLootFunction
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
private final NbtProvider
b
source
field_17013
source
private final List<CopyCustomDataFunction$CopyOperation>
c
operations
field_17014
operations

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()
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 CopyCustomDataFunction$Builder
a(fam arg0)
copyData(NbtProvider arg0)
method_16848(class_5651 arg0)
builder(LootNbtProvider source)
public static CopyCustomDataFunction$Builder
a(ewp$b arg0)
copyData(LootContext$EntityTarget arg0)
method_35519(class_47$class_50 arg0)
builder(LootContext$EntityTarget target)