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

public class SetComponentsFunction

extends LootItemConditionalFunction

All mapped superinterfaces:

LootItemFunction, LootContextUser

eyl
net.minecraft.world.level.storage.loot.functions.SetComponentsFunction
net.minecraft.class_9320
net.minecraft.loot.function.SetComponentsLootFunction
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
private final DataComponentPatch
b
components
field_49445
changes

Constructor summary

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

Method summary

Modifier and TypeMethod
public LootItemFunctionType<SetComponentsFunction>
b()
getType()
method_29321()
getType()
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 <T> LootItemConditionalFunction$Builder<?>
a(kt<T> arg0, T arg1)
setComponent(DataComponentType<T> arg0, T arg1)
method_57650(class_9331<T> arg0, T arg1)
builder(ComponentType<T> componentType, T value)