Added blocks method and files to .gitignore

I was using the WorldEdit API and noticed it was missing a very handy method, so I thought I would submit a PR to add it. This method can be used extensively for block regeneration and is just a nice method to have to fetch blocks within a Selection. I also added OS X files to .gitignore so I wouldn't be pushing hidden files.