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

public class SetItemFunction

extends LootItemConditionalFunction

All mapped superinterfaces:

LootItemFunction, LootContextUser

eyw
net.minecraft.world.level.storage.loot.functions.SetItemFunction
net.minecraft.class_9671
net.minecraft.loot.function.SetItemLootFunction
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
private final Holder<Item>
b
item
field_51437
item

Constructor summary

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

Method summary

Modifier and TypeMethod
public LootItemFunctionType<SetItemFunction>
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)