Keeping up with bukkit, ditching magic numbers

Replaced the deprecated ItemStack getTypeId() calls with equivalent ItemStack getType() calls.