I think you are misinterpreting the Penal Code.
459. Every person who enters any house, room, apartment, tenement, shop, warehouse, store, mill, barn, stable, outhouse or other building, tent, vessel, as defined in Section 21 of the Harbors and Navigation Code, floating home, as defined in...