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

public class SetItemFunction

extends LootItemConditionalFunction

All mapped superinterfaces:

LootItemFunction, LootContextUser

esr
net.minecraft.world.level.storage.loot.functions.SetItemFunction
net.minecraft.class_9671
net.minecraft.loot.function.SetItemLootFunction
net.minecraft.src.C_313503_
net.minecraft.world.level.storage.loot.functions.SetItemFunction

Field summary

Modifier and TypeField
public static final com.mojang.serialization.MapCodec<SetItemFunction>
a
CODEC
field_51436
CODEC
f_316876_
private final Holder<Item>
b
item
field_51437
item
f_313907_

Constructor summary

ModifierConstructor
private (List<LootItemCondition> conditions, Holder<Item> item)

Method summary

Modifier and TypeMethod
public LootItemFunctionType<SetItemFunction>
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_332197_, C_2811_ arg1)