Class CopyBlockState

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

public class CopyBlockState extends LootItemConditionalFunction
LootItemFunction that copies a set of block state properties to the "BlockStateTag" NBT tag of the ItemStack. This tag is checked when the block is placed.