Updated for Minecraft 1.8