I am using the one page checkout module from AheadWorks and I am trying to only retrieve billing addresses from logged in members.
Currently the dropdown menu for choosing their address to bill from shows all addresses created by a logged in member. Also shipping adresses. I would like this to only show billingaddresses. Is there a way to do so? I already took a look inside the block which should be used, but unfortunately, I don't understand.
public function getAddressesHtmlSelect($type)
{
    if ($this->isCustomerLoggedIn()) {
        $options = array();
        foreach ($this->getCustomer()->getAddresses() as $address) {
            $options[] = array(
                'value' => $address->getId(),
                'label' => $address->format('oneline')
            );
        }
        $addressDetails = Mage::getSingleton('checkout/session')->getData('aw_onestepcheckout_form_values');
        if (isset($addressDetails[$type.'_address_id'])) {
            if (empty($addressDetails[$type.'_address_id'])) {
                $addressId = 0;
            } else {
                $addressId = $addressDetails[$type.'_address_id'];
            }
        } else {
            $addressId = $this->getQuote()->getBillingAddress()->getCustomerAddressId();
        }
        if (empty($addressId) && $addressId !== 0) {
            $address = $this->getCustomer()->getPrimaryBillingAddress();
            if ($address) {
                $addressId = $address->getId();
            }
        }
        $select = $this->getLayout()->createBlock('core/html_select')
            ->setName($type.'_address_id')
            ->setId($type.'-address-select')
            ->setClass('address-select')
            ->setValue($addressId)
            ->setOptions($options);
        return $select->getHtml();
    }
    return '';
}