Class SetContainerContents

java.lang.Object
net.minecraft.world.level.storage.loot.functions.LootItemConditionalFunction
net.minecraft.world.level.storage.loot.functions.SetContainerContents
All Implemented Interfaces:
BiFunction<ItemStack,LootContext,ItemStack>, LootItemFunction, LootContextUser

public class SetContainerContents extends LootItemConditionalFunction
LootItemFunction that sets the contents of a container such as a chest by setting the BlocKEntityTag of the stacks. The contents are based on a list of loot pools.