Use entity ID for Bukkit API entity type id. Fixes #1272