Bukkit potion decoding is pants; I've written my own. It's just bit-twiddling.