public int getColor(ItemStack itemStack) { // basically we're just using vanillas right now. This is hilarious in comparison to the old // method, which is a mile long. return PotionHelper.calcPotionLiquidColor( new PotionEssence(itemStack.getTagCompound()).getEffects()); }