Somewhat updated for Spigot 1.8 and particle class update changes.