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

public class CopyComponentsFunction

extends LootItemConditionalFunction

All mapped superinterfaces:

LootItemFunction, LootContextUser

ews
net.minecraft.world.level.storage.loot.functions.CopyComponentsFunction
net.minecraft.class_9317
net.minecraft.unmapped.C_mbgfajkg
net.minecraft.loot.function.CopyComponentsLootFunction
net.minecraft.loot.function.CopyComponentsLootFunction
net.minecraft.src.C_313760_
net.minecraft.world.level.storage.loot.functions.CopyComponentsFunction

Field summary

Modifier and TypeField
public static final com.mojang.serialization.MapCodec<CopyComponentsFunction>
a
CODEC
field_49430
f_lqghdfsd
CODEC
CODEC
f_315830_
private final CopyComponentsFunction$Source
b
source
field_49431
f_rsalylgi
source
source
f_315071_
private final Optional<List<DataComponentType<?>>>
c
include
field_50202
f_btlgvxjt
include
include
f_316589_
private final Optional<List<DataComponentType<?>>>
d
exclude
field_50203
f_yhrbdzub
exclude
exclude
f_314754_
private final Predicate<DataComponentType<?>>
e
bakedPredicate
field_50204
f_hayoqqro
filter
componentFilter
f_315946_

Constructor summary

ModifierConstructor
(List<LootItemCondition> conditions, CopyComponentsFunction$Source source, Optional<List<DataComponentType<?>>> include, Optional<List<DataComponentType<?>>> exclude)

Method summary

Modifier and TypeMethod
public LootItemFunctionType<CopyComponentsFunction>
b()
getType()
method_29321()
m_ngvoddkv()
getType()
getType()
m_7162_()
public Set<ContextKey<?>>
a()
getReferencedContextParams()
method_293()
m_oozesizv()
getAllowedParameters()
getRequiredParameters()
m_6231_()
public ItemStack
a(cwq arg0, evs arg1)
run(ItemStack arg0, LootContext arg1)
method_522(class_1799 arg0, class_47 arg1)
m_axzztavb(C_sddaxwyk arg0, C_iakykpgh arg1)
process(ItemStack arg0, LootContext arg1)
process(ItemStack arg0, LootContext arg1)
m_7372_(C_1391_ p_328771_, C_2811_ arg1)
public static CopyComponentsFunction$Builder
a(ews$b arg0)
copyComponents(CopyComponentsFunction$Source arg0)
method_57637(class_9317$class_9319 arg0)
m_tzmfkrqo(C_mbgfajkg$C_zcqyfuyv arg0)
builder(CopyComponentsLootFunction$Source source)
builder(CopyComponentsLootFunction$Source source)
m_324952_(C_313760_$C_313711_ p_331082_)