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

public class CopyComponentsFunction

extends LootItemConditionalFunction

All mapped superinterfaces:

LootItemFunction, LootContextUser

exp
net.minecraft.world.level.storage.loot.functions.CopyComponentsFunction
net.minecraft.class_9317
net.minecraft.loot.function.CopyComponentsLootFunction
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
private final CopyComponentsFunction$Source
b
source
field_49431
source
private final Optional<List<DataComponentType<?>>>
c
include
field_50202
include
private final Optional<List<DataComponentType<?>>>
d
exclude
field_50203
exclude
private final Predicate<DataComponentType<?>>
e
bakedPredicate
field_50204
filter

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()
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 CopyComponentsFunction$Builder
a(exp$b arg0)
copyComponents(CopyComponentsFunction$Source arg0)
method_57637(class_9317$class_9319 arg0)
builder(CopyComponentsLootFunction$Source source)