boolean checkIfInWater(LivingEntity entity)
   {
      boolean entityIsInWater = false;

      if(null != entity)
      {
         Material mat = entity.getLocation().getBlock().getType();

         if(mat == Material.STATIONARY_WATER || mat == Material.WATER)
         {
            entityIsInWater = true;
         }
      }

      return (entityIsInWater);
   }