Add isInvulnerable() to the API

Parent request: https://github.com/SpigotMC/Spigot-Server/pull/63