getBlockIdFromItem

abstract fun getBlockIdFromItem(item: ItemStack): Key?(source)

Returns ID of the block placed by the item in the provider owning the item, or null if the item doesn't place a block.