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

public class CopyNbtFunction

extends LootItemConditionalFunction

All mapped superinterfaces:

LootItemFunction, LootContextUser

edu
net.minecraft.world.level.storage.loot.functions.CopyNbtFunction
net.minecraft.class_3837
net.minecraft.loot.function.CopyNbtLootFunction
net.minecraft.src.C_2896_
net.minecraft.world.level.storage.loot.functions.LootItemFunctionCopyNBT

Field summary

Modifier and TypeField
public static final com.mojang.serialization.Codec<CopyNbtFunction>
a
CODEC
field_45819
CODEC
f_291213_
private final NbtProvider
b
source
field_17013
source
f_80234_
private final List<CopyNbtFunction$CopyOperation>
c
operations
field_17014
operations
f_80235_

Constructor summary

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

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 ItemStack
a(cjf arg0, ecq arg1)
run(ItemStack arg0, LootContext arg1)
method_522(class_1799 arg0, class_47 arg1)
process(ItemStack arg0, LootContext arg1)
m_7372_(C_1391_ p_80251_, C_2811_ arg1)
public static CopyNbtFunction$Builder
a(egd arg0)
copyData(NbtProvider arg0)
method_16848(class_5651 arg0)
builder(LootNbtProvider source)
m_165180_(C_141490_ p_165181_)
public static CopyNbtFunction$Builder
a(ecq$b arg0)
copyData(LootContext$EntityTarget arg0)
method_35519(class_47$class_50 arg0)
builder(LootContext$EntityTarget target)
m_165178_(C_2811_$C_2815_ p_165179_)