public static double getBallBonus(
     EnumPokeballs type, EntityLiving thrower, EntityPixelmon p2, Mode mode) {
   double ballBonus = type.getBallBonus();
   for (CaptureBase c : captureList)
     if (c.pokeball == type) return c.getBallBonus(type, (EntityPlayer) thrower, p2, mode);
   return ballBonus;
 }
 public static int modifyCaptureRate(EnumPokeballs type, String pokemonName, int captureRate) {
   for (CaptureBase c : captureList)
     if (c.pokeball == type) return c.modifyCaptureRate(pokemonName, captureRate);
   return captureRate;
 }
 public static void doAfterEffect(EnumPokeballs type, EntityPixelmon p2) {
   for (CaptureBase c : captureList) if (c.pokeball == type) c.doAfterEffect(type, p2);
 }