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

public class SetComponentsFunction

extends LootItemConditionalFunction

All mapped superinterfaces:

LootItemFunction, LootContextUser

esg
net.minecraft.world.level.storage.loot.functions.SetComponentsFunction
net.minecraft.class_9320
net.minecraft.loot.function.SetComponentsLootFunction
net.minecraft.src.C_313893_
net.minecraft.world.level.storage.loot.functions.SetComponentsFunction

Field summary

Modifier and TypeField
public static final com.mojang.serialization.MapCodec<SetComponentsFunction>
a
CODEC
field_49444
CODEC
f_315423_
private final DataComponentPatch
b
components
field_49445
changes
f_316848_

Constructor summary

ModifierConstructor
private (List<LootItemCondition> conditions, DataComponentPatch changes)

Method summary

Modifier and TypeMethod
public LootItemFunctionType<SetComponentsFunction>
b()
getType()
method_29321()
getType()
m_7162_()
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_333804_, C_2811_ arg1)
public static <T> LootItemConditionalFunction$Builder<?>
a(kl<T> arg0, T arg1)
setComponent(DataComponentType<T> arg0, T arg1)
method_57650(class_9331<T> arg0, T arg1)
builder(DataComponentType<T> componentType, T value)
m_320963_(C_313543_<T> p_334396_, T p_330070_)