Class SetContainerLootTable

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

public class SetContainerLootTable extends LootItemConditionalFunction
LootItemFunction that sets the LootTable and optionally the loot table seed on the stack's BlockEntityTag. The effect of this is that containers such as chests will receive the given LootTable when placed.