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

public class CopyComponentsFunction

extends LootItemConditionalFunction

All mapped superinterfaces:

LootItemFunction, LootContextUser

erk
net.minecraft.world.level.storage.loot.functions.CopyComponentsFunction
net.minecraft.class_9317
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
CODEC
f_315830_
private final CopyComponentsFunction$Source
b
source
field_49431
source
f_315071_
private final Optional<List<DataComponentType<?>>>
c
include
field_50202
include
f_316589_
private final Optional<List<DataComponentType<?>>>
d
exclude
field_50203
exclude
f_314754_
private final Predicate<DataComponentType<?>>
e
bakedPredicate
field_50204
filter
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()
getType()
m_7162_()
public Set<LootContextParam<?>>
a()
getReferencedContextParams()
method_293()
getRequiredParameters()
m_6231_()
public ItemStack
a(cur arg0, eqk arg1)
run(ItemStack arg0, LootContext arg1)
method_522(class_1799 arg0, class_47 arg1)
process(ItemStack arg0, LootContext arg1)
m_7372_(C_1391_ p_328771_, C_2811_ arg1)
public static CopyComponentsFunction$Builder
a(erk$b arg0)
copyComponents(CopyComponentsFunction$Source arg0)
method_57637(class_9317$class_9319 arg0)
builder(CopyComponentsLootFunction$Source source)
m_324952_(C_313760_$C_313711_ p_331082_)